]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Mar 2022 18:01:58 +0000 (19:01 +0100)
commit0425baf4cbfb9f91b364be85f49487ec0071bd5a
tree9d2c76388d0854626e4560e50ea5acb9912fba5e
parentc83366d0b3508fa9d35d29e5fe1d8ea592c917f8
nl80211: Handle nla_memdup failures in handle_nan_filter

[ 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>
net/wireless/nl80211.c