summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJia-Ju Bai <baijiaju1990@163.com>2017-12-12 10:26:36 +0100
committerJohannes Berg <johannes.berg@intel.com>2017-12-19 09:14:06 +0100
commit162bd5e5fd921785077b5862d8f2ffabe2fe11e5 (patch)
tree26cc8e6a69b56fce2c1eae9b634c08c8253216ab /net
parentcfg80211: always rewrite generated files from scratch (diff)
downloadlinux-162bd5e5fd921785077b5862d8f2ffabe2fe11e5.tar.xz
linux-162bd5e5fd921785077b5862d8f2ffabe2fe11e5.zip
mac80211_hwsim: Fix a possible sleep-in-atomic bug in hwsim_get_radio_nl
The driver may sleep under a spinlock. The function call path is: hwsim_get_radio_nl (acquire the spinlock) nlmsg_new(GFP_KERNEL) --> may sleep To fix it, GFP_KERNEL is replaced with GFP_ATOMIC. This bug is found by my static analysis tool(DSAC) and checked by my code review. Signed-off-by: Jia-Ju Bai <baijiaju1990@163.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions