]> git.baikalelectronics.ru Git - kernel.git/commit
ath11k: Fix an error handling path
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Tue, 24 Nov 2020 15:59:16 +0000 (17:59 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 2 Dec 2020 18:20:16 +0000 (20:20 +0200)
commitb03fe9c0fc86a6a6e5ca9ded4fcbb6bb6a4a0874
tree07b9237d25e99a85b0ceaf3691dd1474c95e4b43
parent09be3724d9ae0db6e6e2dc4f4d4de0df7a97a2eb
ath11k: Fix an error handling path

If 'kzalloc' fails, we must return an error code.

While at it, remove a useless initialization of 'err' which could hide the
issue.

Fixes: cb31f0c88272 ("ath11k: driver for Qualcomm IEEE 802.11ax devices")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201122173943.1366167-1-christophe.jaillet@wanadoo.fr
drivers/net/wireless/ath/ath11k/qmi.c