]> git.baikalelectronics.ru Git - kernel.git/commit
iwlagn: fix rmmod crash
authorStanislaw Gruszka <sgruszka@redhat.com>
Fri, 24 Jun 2011 09:34:34 +0000 (11:34 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 27 Jun 2011 19:09:42 +0000 (15:09 -0400)
commite4a37d331d7a53fbac6c9e868e1b1e98897a5e39
treed51512b45db9f5675a2f6b89a9a428781bece707
parent8a4dbea548d8c7b946433f8ccb17dccdb701a47e
iwlagn: fix rmmod crash

priv->bus.bus_specific pointer is used after priv structures was freed,
in iwl_pci_remove(), what make ugly rmmod crash. This bug was introduced
by current pci changes.

On the way remove fake check, if prober error code is returned from
.probe() function, .remove() will never be called be null drvdata.

Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-pci.c