source: trunk/target/linux/generic/patches-2.6.36/280-solos_dont_null_deref.patch @ 25630

Last change on this file since 25630 was 25630, checked in by florian, 5 years ago

[kernel] add two solos-releated patches from Philip Prindeville

File size: 463 bytes
  • drivers/atm/solos-pci.c

    a b static int popen(struct atm_vcc *vcc) 
    866866        } 
    867867 
    868868        skb = alloc_skb(sizeof(*header), GFP_ATOMIC); 
    869         if (!skb && net_ratelimit()) { 
    870                 dev_warn(&card->dev->dev, "Failed to allocate sk_buff in popen()\n"); 
     869        if (!skb) { 
     870                if (net_ratelimit()) 
     871                        dev_warn(&card->dev->dev, "Failed to allocate sk_buff in popen()\n"); 
    871872                return -ENOMEM; 
    872873        } 
    873874        header = (void *)skb_put(skb, sizeof(*header)); 
Note: See TracBrowser for help on using the repository browser.