]> git.baikalelectronics.ru Git - 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)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 1 Mar 2022 10:15:08 +0000 (11:15 +0100)
commit1bd7783588edcc9effe018942aca7549fd648ce3
tree2228a67af8007299f1bd419844cd9d3edab51813
parentb99b2b3dd3afa4a6517d7f80e4a0cf3fa0cb2d64
nl80211: Handle nla_memdup failures in handle_nan_filter

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

Fixes: 36d85bafc8f4 ("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>
net/wireless/nl80211.c