]> git.baikalelectronics.ru Git - kernel.git/commit
rsi: fix missing null pointer check from a failed ieee80211_probereq_get call
authorColin Ian King <colin.king@canonical.com>
Thu, 21 Feb 2019 12:35:49 +0000 (12:35 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Thu, 28 Feb 2019 08:28:36 +0000 (10:28 +0200)
commitcb24195380b471eb2054c5fec71861b85672458a
treeb5577954509e1a9941244da95883346d5dda051e
parent3c721480535fe03c247f0a4a52557b58854ae732
rsi: fix missing null pointer check from a failed ieee80211_probereq_get call

The call to ieee80211_probereq_get can return NULL if a skb allocation
fails, so add a null pointer check and free an earlier skb on the error
exit return path.

Fixes: bd3e39a228e1 ("rsi: add support for hardware scan offload")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rsi/rsi_91x_mgmt.c