]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
cfg80211: check for set_wiphy_params
authorJohannes Berg <johannes.berg@intel.com>
Mon, 13 Jan 2020 11:53:59 +0000 (12:53 +0100)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 06:00:53 +0000 (01:00 -0500)
commited6ebff4f29527d6f7cdfa2da46e0b9395138ec8
tree66c39828cfe1cd19edde5e065e04bbfbf19473fa
parent623fa7fb77627d76c81634796286af7f58dde44a
cfg80211: check for set_wiphy_params

BugLink: https://bugs.launchpad.net/bugs/1862429
commit 24953de0a5e31dcca7e82c8a3c79abc2dfe8fb6e upstream.

Check if set_wiphy_params is assigned and return an error if not,
some drivers (e.g. virt_wifi where syzbot reported it) don't have
it.

Reported-by: syzbot+e8a797964a4180eb57d5@syzkaller.appspotmail.com
Reported-by: syzbot+34b582cf32c1db008f8e@syzkaller.appspotmail.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Link: https://lore.kernel.org/r/20200113125358.ac07f276efff.Ibd85ee1b12e47b9efb00a2adc5cd3fac50da791a@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
net/wireless/rdev-ops.h