ath9k: improve dma map failure handling
authorFelix Fietkau <nbd@openwrt.org>
Sun, 7 Apr 2013 22:04:10 +0000 (00:04 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 10 Apr 2013 18:10:33 +0000 (14:10 -0400)
commit2e1cd495466d14c7d92e10d709f27161afe44b15
tree5c15aa082527ce0f790cb2e38fbafa8346cff62e
parentc60c99298c50b698b0bbbe0e0146c965c322b8c1
ath9k: improve dma map failure handling

Instead of leaving the buffer without skb and breaking out of the loop
(which could leak the rx buffer), use the common error path.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/recv.c