Commit bcd56cde authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Liu Jian
Browse files

nfc: constify several pointers to u8, char and sk_buff

stable inclusion
from stable-v4.19.291
commit 1deacb5e031e289ca5636f2db4fcae6612c05d34
category: bugfix
bugzilla: https://gitee.com/src-openeuler/kernel/issues/I95AXP
CVE: CVE-2023-52502

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=1deacb5e031e289ca5636f2db4fcae6612c05d34



---------------------------

[ Upstream commit 3df40eb3 ]

Several functions receive pointers to u8, char or sk_buff but do not
modify the contents so make them const.  This allows doing the same for
local variables and in total makes the code a little bit safer.

Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
Stable-dep-of: 0d9b41da ("nfc: llcp: fix possible use of uninitialized variable in nfc_llcp_send_connect()")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarLiu Jian <liujian56@huawei.com>
parent 8393e1c3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment