ipw2100: don't return positive values to PCI probe on error
commit185ffc194800a914f793643adf0ce09592124ef6
authorDan Williams <dcbw@redhat.com>
Wed, 12 Jul 2017 16:47:02 +0000 (12 11:47 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 28 Jul 2017 15:01:43 +0000 (28 18:01 +0300)
tree31e0f082bf178149b065f26d2f54143a58f8cbba
parent17830147c40a26b7c323fbab525e6dd63bd45d49
ipw2100: don't return positive values to PCI probe on error

Causes the PCI stack to complain, and then eventually call the
PCI remove function, which ipw2100 is not expecting.  It then
tries to unregister an already-released netdev and other nasty
things, leading to a panic.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1185518

Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intel/ipw2x00/ipw2100.c