]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 7 Jul 2023 10:16:54 +0000 (12:16 +0200)
commitd1fa61c83a72350407309168c3219ee1807c1ee8
tree70978bc2f2c7b87903ddea18ef87e128ca144305
parent4660d73e773a0fe0237fe112e12a74a05145e571
wifi: ath6kl: minor fix for allocation size

BugLink: https://bugs.launchpad.net/bugs/2025067
[ 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: bdcd81707973cf8a ("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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/net/wireless/ath/ath6kl/bmi.c