carl9170: fix memory leak issue in async cmd macro wrappers
authorChristian Lamparter <chunkeey@googlemail.com>
Sat, 16 Oct 2010 18:47:50 +0000 (20:47 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 25 Oct 2010 18:43:14 +0000 (14:43 -0400)
commit3d2f2cd066e9e2b7e43d516d92e66dac2fc46aa0
tree3b5ffe5a631cbb0b22eb8f6381c0c9bb4a1e69d3
parent5f4e6b2d3c74c1adda1cbfd9d9d30da22c7484fc
carl9170: fix memory leak issue in async cmd macro wrappers

This patch continues where the previous commit:
"carl9170: fix async command buffer leak"
left off.

Similar to carl9170_reboot/carl9170_powersave, the
carl9170_async_regwrite* macros would leak the
temporary command buffer, if __carl9170_exec_cmd
fails to upload the command to the device.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/carl9170/cmd.h