]> git.baikalelectronics.ru Git - 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)
commitcc1fa8d7be5ba671602839dd60cd97b639847f84
treed8c2bdef5b020e4c8f584e85407069e1b924f971
parent0af10389e6d4c3369901f88d1015fa9b5238fdfa
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