]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
rsi: fix memory leak in rsi_load_ta_instructions()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 12 Dec 2014 21:43:55 +0000 (00:43 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 24 Dec 2014 15:26:08 +0000 (17:26 +0200)
commiteae79b4f3e82ca63a53478a161b190a0d38fe526
tree2883da0af086a51cddd82475a30bf5694b09cb2f
parent18e0c0bf3a5ea0f54384149570274d535341dc06
rsi: fix memory leak in rsi_load_ta_instructions()

Memory allocated by kmemdup() in rsi_load_ta_instructions() is leaked.
But duplication of firmware data here is useless,
so the patch removes kmemdup() at all.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rsi/rsi_91x_sdio_ops.c