]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: ath6kl: minor fix for allocation size
authorAlexey V. Vissarionov <gremlin@altlinux.org>
Wed, 15 Feb 2023 18:31:37 +0000 (20:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2023 09:35:40 +0000 (11:35 +0200)
commit81fb054729306b0017657fb06ccb1daaeefcbd1b
tree199852e9069fa49055cd8dd444a1d4f0965e93e3
parent8277bbe1ef9d02b7d7b62aa09341c291cdd8ca4c
wifi: ath6kl: minor fix for allocation size

[ Upstream commit 778f83f889e7fca37780d9640fcbd0229ae38eaa ]

Although the "param" pointer occupies more or equal space compared
to "*param", the allocation size should use the size of variable
itself.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: e0374f4be59b86a7 ("Add ath6kl cleaned up driver")
Signed-off-by: Alexey V. Vissarionov <gremlin@altlinux.org>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230117110414.GC12547@altlinux.org
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/ath/ath6kl/bmi.c