]> git.baikalelectronics.ru Git - kernel.git/commit
brcm80211: brcmu_pkt_buf_free_skb() should handle NULL
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 15 May 2012 09:00:27 +0000 (12:00 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 5 Jun 2012 19:23:20 +0000 (15:23 -0400)
commitfff543fd922e2d47a7060bc703b2f76fa2d048db
tree9378cb9de978448430b07382a2421fc9d70c25d8
parent761354bc7bdd6d56fb5418fe9cd45844197ec2b8
brcm80211: brcmu_pkt_buf_free_skb() should handle NULL

This is potentially called with NULL pointers, for example, look at
brcmf_c_prec_enq().  Since it's a free() function, probably people
expect it to handle NULL pointers.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Arend van Spriel <arend@broadcom.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/brcm80211/brcmutil/utils.c