|
@@ -768,11 +768,13 @@ done:
|
|
static void write_bulk_callback(struct urb *urb)
|
|
static void write_bulk_callback(struct urb *urb)
|
|
{
|
|
{
|
|
pegasus_t *pegasus = urb->context;
|
|
pegasus_t *pegasus = urb->context;
|
|
- struct net_device *net = pegasus->net;
|
|
|
|
|
|
+ struct net_device *net;
|
|
|
|
|
|
if (!pegasus)
|
|
if (!pegasus)
|
|
return;
|
|
return;
|
|
|
|
|
|
|
|
+ net = pegasus->net;
|
|
|
|
+
|
|
if (!netif_device_present(net) || !netif_running(net))
|
|
if (!netif_device_present(net) || !netif_running(net))
|
|
return;
|
|
return;
|
|
|
|
|