X-Git-Url: https://git.stricted.de/?a=blobdiff_plain;f=drivers%2Fisdn%2Fhysdn%2Fhysdn_net.c;h=feec8d89d719c07395ed0e5aa7b02fd6e7fb32c0;hb=76a64921dad9acd76270dc74249f0dfe11c84bb8;hp=72eb92647c1b15e2619f1969892196240a5d2fb2;hpb=5b8f0be0dce012d190a53d55240fe3fde6306476;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git diff --git a/drivers/isdn/hysdn/hysdn_net.c b/drivers/isdn/hysdn/hysdn_net.c index 72eb92647c1b..feec8d89d719 100644 --- a/drivers/isdn/hysdn/hysdn_net.c +++ b/drivers/isdn/hysdn/hysdn_net.c @@ -187,12 +187,13 @@ void hysdn_rx_netpkt(hysdn_card * card, unsigned char *buf, unsigned short len) { struct net_local *lp = card->netif; - struct net_device *dev = lp->dev; + struct net_device *dev; struct sk_buff *skb; if (!lp) return; /* non existing device */ + dev = lp->dev; dev->stats.rx_bytes += len; skb = dev_alloc_skb(len);