]> git.baikalelectronics.ru Git - kernel.git/commit
iwlegacy: don't return zero on failure paths in il4965_pci_probe()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sat, 19 Jan 2013 12:56:34 +0000 (16:56 +0400)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 22 Jan 2013 21:01:30 +0000 (16:01 -0500)
commit00ea2379fec90f90f99f4a8fbe4c342890a6d7ee
tree130f78401e8ccd4fd348b28a0ce3bc1671502a02
parent1b34c232e73a704c12bbbccde03ea2dbe85dcaae
iwlegacy: don't return zero on failure paths in il4965_pci_probe()

If hardware is not ready, il4965_pci_probe() breaks off initialization,
deallocates all resources, but returns zero.
The patch adds -EIO as return value in this case.

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

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlegacy/4965-mac.c