]> git.baikalelectronics.ru Git - kernel.git/commit
ath6kl: fix memory leak in ath6kl_fwlog_block_read()
authorJesper Juhl <jj@chaosbits.net>
Wed, 11 Apr 2012 20:41:36 +0000 (22:41 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Fri, 13 Apr 2012 11:42:15 +0000 (14:42 +0300)
commita2609ea434996d1e8f9239df47535464c3fd76dc
tree7d6a5f2c899149a9b9af2e19611b3bfaebb8def0
parentc38455c97b5d900daa190dd64857bb83835a9bbd
ath6kl: fix memory leak in ath6kl_fwlog_block_read()

If, in
drivers/net/wireless/ath/ath6kl/debug.c::ath6kl_fwlog_block_read(),
the call to wait_for_completion_interruptible() returns -ERESTARTSYS
then we'll return without freeing the (as yet unused) memory we
allocated for 'buf' - thus leaking it.

Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath6kl/debug.c