From: Richard Kennedy Date: Mon, 3 Nov 2008 11:22:43 +0000 (+0000) Subject: Staging: wlan-ng: hfa384x_usbin_callback: check for hardware removed X-Git-Tag: v2.6.29-rc1~228^2~158 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=8636cdedc5be050fd83afa3b3681a0889d9058a9;p=linux-2.6-omap-h63xx.git Staging: wlan-ng: hfa384x_usbin_callback: check for hardware removed hfa384x_usbin_callback: check for hardware removed copied from latest wlan-ng-devel version Signed-off-by: Richard Kennedy Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/drivers/staging/wlan-ng/hfa384x_usb.c index a26609bdc4a..8a75b50f863 100644 --- a/drivers/staging/wlan-ng/hfa384x_usb.c +++ b/drivers/staging/wlan-ng/hfa384x_usb.c @@ -3604,7 +3604,7 @@ static void hfa384x_usbin_callback(struct urb *urb) if ( !wlandev || !wlandev->netdev || - !netif_device_present(wlandev->netdev) ) + wlandev->hwremoved ) goto exit; hw = wlandev->priv;