From 8636cdedc5be050fd83afa3b3681a0889d9058a9 Mon Sep 17 00:00:00 2001 From: Richard Kennedy Date: Mon, 3 Nov 2008 11:22:43 +0000 Subject: [PATCH] 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 --- drivers/staging/wlan-ng/hfa384x_usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/wlan-ng/hfa384x_usb.c b/drivers/staging/wlan-ng/hfa384x_usb.c index a26609bdc4a5..8a75b50f8635 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; -- GitLab