source: branches/chaos_calmer/package/kernel/mac80211/patches/351-0030-net-wireless-broadcom-brcm80211-brcmfmac-usb-don-t-p.patch @ 49407

Last change on this file since 49407 was 49407, checked in by rmilecki, 12 months ago

mac80211: brcmfmac: backport changes from 2016-09-27

This fixes memory leaks, some possible crashes and bug that could cause
WARNING on every add_key/del_key call. It also replaces WARNING with
a simple message. They may still occur e.g. on station going out of
range and A-MPDU stall in the firmware.

Signed-off-by: Rafał Miłecki <rafal@…>

File size: 1.1 KB
  • drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c

    From 938f89e50a41c2d56710805fb019ad7618cef84b Mon Sep 17 00:00:00 2001
    From: Wolfram Sang <wsa-dev@sang-engineering.com>
    Date: Thu, 11 Aug 2016 23:05:31 +0200
    Subject: [PATCH] net: wireless: broadcom: brcm80211: brcmfmac: usb: don't
     print error when allocating urb fails
    
    kmalloc will print enough information in case of failure.
    
    Signed-off-by: Wolfram Sang <wsa-dev@sang-engineering.com>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    ---
     drivers/net/wireless/broadcom/brcm80211/brcmfmac/usb.c | 8 ++------
     1 file changed, 2 insertions(+), 6 deletions(-)
    
    a b struct brcmf_usbdev *brcmf_usb_attach(st 
    10991099        devinfo->tx_freecount = ntxq; 
    11001100 
    11011101        devinfo->ctl_urb = usb_alloc_urb(0, GFP_ATOMIC); 
    1102         if (!devinfo->ctl_urb) { 
    1103                 brcmf_err("usb_alloc_urb (ctl) failed\n"); 
     1102        if (!devinfo->ctl_urb) 
    11041103                goto error; 
    1105         } 
    11061104        devinfo->bulk_urb = usb_alloc_urb(0, GFP_ATOMIC); 
    1107         if (!devinfo->bulk_urb) { 
    1108                 brcmf_err("usb_alloc_urb (bulk) failed\n"); 
     1105        if (!devinfo->bulk_urb) 
    11091106                goto error; 
    1110         } 
    11111107 
    11121108        return &devinfo->bus_pub; 
    11131109 
Note: See TracBrowser for help on using the repository browser.