mcb: Do not return zero on error path in mcb_pci_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Wed, 28 Oct 2015 07:22:15 +0000 (08:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Oct 2015 00:02:16 +0000 (09:02 +0900)
commitbf25c19979b2ee1019201b809e93b6bca9947cfd
tree88ec6e0799f09ca513b4b3b61210e9f0fdca37a9
parent213dd193fab8288e2b0b96dc93f974ec33ba2298
mcb: Do not return zero on error path in mcb_pci_probe()

There is an error path in mcb_pci_probe() where
it returns zero instead of error code.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Johannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mcb/mcb-pci.c