]> git.baikalelectronics.ru Git - kernel.git/commit
wcn36xx: Use kmemdup instead of duplicating it in wcn36xx_smd_process_ptt_msg_rsp
authorYueHaibing <yuehaibing@huawei.com>
Mon, 6 Aug 2018 09:39:07 +0000 (12:39 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 24 Aug 2018 11:48:27 +0000 (14:48 +0300)
commit41a19fc2d0851b8cd8a55a7e2b38e6701fd0492e
tree9b84120fa089d3a44e0694895a6dcca7f43a3100
parentbaf5332530c610864da7b98131a1f7ea4e4cd564
wcn36xx: Use kmemdup instead of duplicating it in wcn36xx_smd_process_ptt_msg_rsp

Replace calls to kmalloc followed by a memcpy with a direct call to
kmemdup.

Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/wcn36xx/smd.c