]> git.baikalelectronics.ru Git - kernel.git/commit
b43: Drop packets that we are not able to encrypt
authorMichael Buesch <mb@bu3sch.de>
Wed, 23 Jan 2008 20:44:15 +0000 (21:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2008 03:26:45 +0000 (19:26 -0800)
commit9a93905b310f5637b57fbfd3bc677a6fe720eac8
treec6e9b3f46ab04a0f1a461699d01cd6dbaa71e9bb
parentb5d1dc62df77a8d1bf2397ef49ed5f19465a7b2b
b43: Drop packets that we are not able to encrypt

We must not transmit packets we're not able to encrypt.

This fixes a bug where in a tiny timeframe after machine resume
packets can get sent unencrypted and might leak information.

This also fixes three small resource leakages I spotted while fixing
the security problem. Properly deallocate the DMA slots in any DMA
allocation error path.

Signed-off-by: Michael Buesch <mb@bu3sch.de>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/wireless/b43/dma.c
drivers/net/wireless/b43/xmit.c
drivers/net/wireless/b43/xmit.h