Prev: any value in /proc/devices showing baseminor and minorct?
Next: [PATCH 0/3] Discarding networking privilege via LSM
From: Dan Carpenter on 23 Dec 2009 08:30 If dev == NULL we shouldn't dereference it. Signed-off-by: Dan Carpenter <error27(a)gmail.com> --- orig/drivers/net/hamradio/bpqether.c 2009-12-22 23:58:56.000000000 +0200 +++ devel/drivers/net/hamradio/bpqether.c 2009-12-22 23:59:46.000000000 +0200 @@ -283,7 +283,6 @@ static netdev_tx_t bpq_xmit(struct sk_bu bpq = netdev_priv(dev); if ((dev = bpq_get_ether_dev(dev)) == NULL) { - dev->stats.tx_dropped++; kfree_skb(skb); return NETDEV_TX_OK; } -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo(a)vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ |