From c4277e9ea70431aea0fecebb8bb9a3fbc27d074e Mon Sep 17 00:00:00 2001 From: Alexey Khoroshilov Date: Sat, 6 Dec 2014 00:28:01 +0300 Subject: [PATCH] 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 Acked-by: Michael S. Tsirkin Signed-off-by: Greg Kroah-Hartman --- Reading git-format-patch failed