]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - net/wireless/nl80211.c
nl80211: check nla_parse_nested() return values
authorJohannes Berg <johannes.berg@intel.com>
Fri, 29 Jun 2018 07:33:39 +0000 (09:33 +0200)
committerJuerg Haefliger <juergh@canonical.com>
Wed, 24 Jul 2019 01:43:10 +0000 (19:43 -0600)
commit6d40e9859fc56f3a1f7776df4414805b7c9ccf70
treed37926b1686672d4104f159868748e5ec82b20fb
parent6cc9111f6b3a9d7a0b1734d501abe0976606020e
nl80211: check nla_parse_nested() return values

BugLink: https://bugs.launchpad.net/bugs/1835845
[ Upstream commit 95bca62fb723a121954fc7ae5473bb2c1f0d5986 ]

At the very least we should check the return value if
nla_parse_nested() is called with a non-NULL policy.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.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/nl80211.c