diff options
author | Damian Hobson-Garcia <dhobsong@igel.co.jp> | 2012-11-16 06:46:11 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-11-21 22:44:10 +0100 |
commit | 439926c81c01f31f9ffa7af7bf2d242b7f794f3c (patch) | |
tree | 1a89ba861796fd5e8b00733810b4c0987dd1b9ef /drivers/uio/uio_pdrv_genirq.c | |
parent | drivers: uio_dmem_genirq: Don't use DMA_ERROR_CODE to indicate unmapped regions (diff) | |
download | linux-439926c81c01f31f9ffa7af7bf2d242b7f794f3c.tar.xz linux-439926c81c01f31f9ffa7af7bf2d242b7f794f3c.zip |
drivers: uio_dmem_genirq: Allow partial success when opening device
The uio device should not fail on open just because one memory allocation
fails. The device might export several regions, the failure of some of
which may or may not be a problem for the user space driver. Failing
regions will remain unmapped, and successful regions will be mapped and
exported to user space. Also deals with the case where failing to map
a region after successfully allocating others would not unmap the
successfully allocated regions before dying.
Signed-off-by: Damian Hobson-Garcia <dhobsong@igel.co.jp>
Cc: "Hans J. Koch" <hjk@hansjkoch.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/uio/uio_pdrv_genirq.c')
0 files changed, 0 insertions, 0 deletions