diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2014-12-06 00:28:01 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-01-12 05:04:12 -0800 |
commit | c4277e9ea70431aea0fecebb8bb9a3fbc27d074e (patch) | |
tree | 95f44b60792c6b0fd74f451c722dcf5f0cbf9971 /drivers/mfd/twl4030-power.c | |
parent | 5de61e7aa1ba9ac3c7edbea375da2bc8eb1a89ae (diff) |
uio/uio_pci_generic: don't return zero on failure path in probe()
If uio_register_device() fails in probe(), it breaks off initialization,
deallocates all resources, but returns zero.
The patch adds proper error code propagation.
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/mfd/twl4030-power.c')
0 files changed, 0 insertions, 0 deletions