aboutsummaryrefslogtreecommitdiff
path: root/net/wireless/of.c
diff options
context:
space:
mode:
authorJohannes Berg2018-01-15 09:58:27 +0100
committerJohannes Berg2018-01-15 11:35:06 +0100
commit59b179b48ce2a6076448a44531242ac2b3f6cef2 (patch)
treebce14f04026957d72570620de8ff83f25620c9e0 /net/wireless/of.c
parent51a1aaa631c90223888d8beac4d649dc11d2ca55 (diff)
cfg80211: check dev_set_name() return value
syzbot reported a warning from rfkill_alloc(), and after a while I think that the reason is that it was doing fault injection and the dev_set_name() failed, leaving the name NULL, and we didn't check the return value and got to rfkill_alloc() with a NULL name. Since we really don't want a NULL name, we ought to check the return value. Fixes: fb28ad35906a ("net: struct device - replace bus_id with dev_name(), dev_set_name()") Reported-by: syzbot+1ddfb3357e1d7bb5b5d3@syzkaller.appspotmail.com Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/of.c')
0 files changed, 0 insertions, 0 deletions