Commit d009dec1 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] USB: fix kaweth driver which was accessing the struct usb_device refcnt variable directly.

parent b14d209d
......@@ -612,8 +612,6 @@ static int kaweth_open(struct net_device *net)
struct kaweth_device *kaweth = (struct kaweth_device *)net->priv;
int res;
kaweth_dbg("Dev usage: %d", kaweth->dev->refcnt.counter);
kaweth_dbg("Opening network device.");
res = kaweth_resubmit_rx_urb(kaweth, GFP_KERNEL);
......@@ -658,9 +656,6 @@ static int kaweth_close(struct net_device *net)
kaweth->status &= ~KAWETH_STATUS_CLOSING;
printk("Dev usage: %d", kaweth->dev->refcnt.counter);
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment