]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
cfg80211: fully initialize old channel for event
authorJohannes Berg <johannes.berg@intel.com>
Mon, 15 Jan 2018 08:12:05 +0000 (09:12 +0100)
committerJohannes Berg <johannes.berg@intel.com>
Mon, 15 Jan 2018 08:15:03 +0000 (09:15 +0100)
commita48a52b7bea81c046fe1c1288f84d0eba214cba0
treed8c2bdef5b020e4c8f584e85407069e1b924f971
parent8155aedf512edd3f88ef19f7cacf476ace7d1322
cfg80211: fully initialize old channel for event

Paul reported that he got a report about undefined behaviour
that seems to me to originate in using uninitialized memory
when the channel structure here is used in the event code in
nl80211 later.

He never reported whether this fixed it, and I wasn't able
to trigger this so far, but we should do the right thing and
fully initialize the on-stack structure anyway.

Reported-by: Paul Menzel <pmenzel+linux-wireless@molgen.mpg.de>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/wireless/reg.c