]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
cfg80211: initialize on-stack chandefs
authorJohannes Berg <johannes.berg@intel.com>
Mon, 23 Sep 2019 11:51:16 +0000 (13:51 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 12 Nov 2019 18:04:21 +0000 (19:04 +0100)
commit2e85f3b1df2371eb3309fa9745bb6888c6a6b04c
treee5ac72e708410148a17f45702a40aeb05acb36ce
parent00c5eca4aedb9dce0dafcce87591613f306db77e
cfg80211: initialize on-stack chandefs

BugLink: https://bugs.launchpad.net/bugs/1849576
commit f43e5210c739fe76a4b0ed851559d6902f20ceb1 upstream.

In a few places we don't properly initialize on-stack chandefs,
resulting in EDMG data to be non-zero, which broke things.

Additionally, in a few places we rely on the driver to init the
data completely, but perhaps we shouldn't as non-EDMG drivers
may not initialize the EDMG data, also initialize it there.

Cc: stable@vger.kernel.org
Fixes: 2a38075cd0be ("nl80211: Add support for EDMG channels")
Reported-by: Dmitry Osipenko <digetx@gmail.com>
Tested-by: Dmitry Osipenko <digetx@gmail.com>
Link: https://lore.kernel.org/r/1569239475-I2dcce394ecf873376c386a78f31c2ec8b538fa25@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: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
net/wireless/nl80211.c
net/wireless/reg.c
net/wireless/wext-compat.c