diff mbox

NULL Pointer Deference: NFS & Telnet

Message ID 27F9C60D11D683428E133F85D2BB4A53043E3EE6A3@dlee03.ent.ti.com (mailing list archive)
State New, archived
Headers show

Commit Message

Abraham Arce May 26, 2010, 8:19 p.m. UTC
None
diff mbox

Patch

diff --git a/drivers/net/ks8851.c b/drivers/net/ks8851.c
index b4fb07a..6da81e1 100644
--- a/drivers/net/ks8851.c
+++ b/drivers/net/ks8851.c
@@ -504,7 +504,7 @@  static void ks8851_rx_pkts(struct ks8851_net *ks)
                               ks->rc_rxqcr | RXQCR_SDA | RXQCR_ADRFE);

                if (rxlen > 0) {
-                       skb = netdev_alloc_skb(ks->netdev, rxlen + 2 + 8);
+                       skb = netdev_alloc_skb(ks->netdev, rxlen + 4 + 8);
                        if (!skb) {

Best Regards