]> git.baikalelectronics.ru Git - kernel.git/commit
zd1211rw: Do not panic on device eject when associated
authorJouni Malinen <j@w1.fi>
Mon, 16 Mar 2009 19:47:33 +0000 (21:47 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 16 Mar 2009 22:01:59 +0000 (18:01 -0400)
commit1fe3522287728616721e476f5f44c4396c462dc8
treef7d5fff2fe31dea17393318d0e8deafd65b1ed36
parente0f8b6e83352524192fbdee4f80d37f8ad090a72
zd1211rw: Do not panic on device eject when associated

zd_op_tx() must not return an arbitrary error value since that can
leave mac80211 trying to retransmit the frame and with the extra data
pushed into the beginning of the skb on every attempt, this will end up
causing a kernel panic (skb_under_panic from skb_push call). This can
happen, e.g., when ejecting the device when associated.

Signed-off-by: Jouni Malinen <j@w1.fi>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/zd1211rw/zd_mac.c