aboutsummaryrefslogtreecommitdiff
path: root/include/linux/console_struct.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2018-01-15 09:58:27 +0100
committerMoyster <oysterized@gmail.com>2019-05-03 19:27:53 +0200
commit8e09c6125e20aa1517a1176cb35a1790b845438b (patch)
treebaa5aaed26c2a6c45460522667a04ecd375c9761 /include/linux/console_struct.h
parentec4eaf79b19452599b0c1b3bbcf8fff81afaa9b7 (diff)
cfg80211: check dev_set_name() return value
commit 59b179b48ce2a6076448a44531242ac2b3f6cef2 upstream. 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()") Change-Id: Iecd16d788290c9d51a62c22a7c2784623aa0abc6 Reported-by: syzbot+1ddfb3357e1d7bb5b5d3@syzkaller.appspotmail.com Signed-off-by: Johannes Berg <johannes.berg@intel.com> [bwh: Backported to 3.16: adjust context] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include/linux/console_struct.h')
0 files changed, 0 insertions, 0 deletions