summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorBob Copeland <me@bobcopeland.com>2011-08-07 19:36:07 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2011-08-17 10:55:53 -0700
commita4e0b4cc115c938f75ca7cf24b0a739da846a6c7 (patch)
treecf2ee70c8f3cb929f2dd8aa47aecbfb682b4afd5 /mm
parentcbdeede6a6725dcc13f1a1dc1fc1d1ebe238c7fd (diff)
ath5k: fix error handling in ath5k_beacon_send
commit bdc71bc59231f5542af13b5061b9ab124d093050 upstream. This cleans up error handling for the beacon in case of dma mapping failure. We need to free the skb when dma mapping fails instead of nulling and leaking the pointer, and we should bail out to avoid giving the hardware the bad descriptor. Finally, we need to perform the null check after trying to update the beacon, or else beacons will never be sent after a single mapping failure. Signed-off-by: Bob Copeland <me@bobcopeland.com> Signed-off-by: John W. Linville <linville@tuxdriver.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions