Re: [PATCH] uio/uio_pci_generic: don't return zero on failure path in probe()

2014-12-07 Thread Michael S. Tsirkin
On Sat, Dec 06, 2014 at 12:28:01AM +0300, Alexey Khoroshilov wrote: > 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 (linuxtest

[PATCH] uio/uio_pci_generic: don't return zero on failure path in probe()

2014-12-05 Thread Alexey Khoroshilov
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 --- drivers/uio/uio_pci_generic.c