]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
nl80211: Handle nla_memdup failures in handle_nan_filter
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Tue, 1 Mar 2022 10:00:20 +0000 (18:00 +0800)
committerPaolo Pisati <paolo.pisati@canonical.com>
Wed, 9 Mar 2022 14:17:58 +0000 (15:17 +0100)
commit243140108d1c13f225038ba72399b1427ab187f6
treecc362ffefb4e5f6e700a72d6c30695dc9203dba6
parentcda083b0c3f2be56df327f88f389de22007332b6
nl80211: Handle nla_memdup failures in handle_nan_filter

BugLink: https://bugs.launchpad.net/bugs/1964361
[ Upstream commit 6ad27f522cb3b210476daf63ce6ddb6568c0508b ]

As there's potential for failure of the nla_memdup(),
check the return value.

Fixes: a442b761b24b ("cfg80211: add add_nan_func / del_nan_func")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Link: https://lore.kernel.org/r/20220301100020.3801187-1-jiasheng@iscas.ac.cn
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Paolo Pisati <paolo.pisati@canonical.com>
net/wireless/nl80211.c