]> git.baikalelectronics.ru Git - kernel.git/commit
rsi: Fix possible leak when loading firmware
authorChristian Engelmayer <cengelma@gmx.at>
Fri, 21 Aug 2015 21:14:26 +0000 (23:14 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 25 Aug 2015 12:37:41 +0000 (15:37 +0300)
commit00f7571d1cd2bdb09dc83acb5d8fe23fd9701475
tree2fccddabbf5c2babf4565acc3141bf85182e9c8d
parentf83bf92cd792e1a8520f72de144a48b09e573805
rsi: Fix possible leak when loading firmware

Commit f774cfeb3414 ("rsi: Fix failure to load firmware after memory
leak fix and fix the leak") also added a check on the allocation of
DMA-accessible memory that may directly return. In that case the
already allocated firmware data is leaked. Make sure the data is
always freed correctly. Detected by Coverity CID 1316519.

Fixes: f774cfeb3414 ("rsi: Fix failure to load firmware after memory leak fix and fix the leak")
Signed-off-by: Christian Engelmayer <cengelma@gmx.at>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rsi/rsi_91x_sdio_ops.c
drivers/net/wireless/rsi/rsi_91x_usb_ops.c