]> git.baikalelectronics.ru Git - kernel.git/commit
rsi: Fix NULL pointer dereference in kmalloc
authorAditya Pakki <pakki001@umn.edu>
Sat, 23 Mar 2019 20:49:16 +0000 (15:49 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 25 Apr 2019 16:42:26 +0000 (19:42 +0300)
commitd90edde6992e577286e05785994b9958db50793d
tree8e9b39ab013dd4feab46f066ff004ba6d903359f
parent4400c86a734de6618b02320e894b6d1f25601787
rsi: Fix NULL pointer dereference in kmalloc

kmalloc can fail in rsi_register_rates_channels but memcpy still attempts
to write to channels. The patch replaces these calls with kmemdup and
passes the error upstream.

Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rsi/rsi_91x_mac80211.c