]> git.baikalelectronics.ru Git - kernel.git/commit
net: ieee802154: nl-mac: fix check on panid
authorAlexander Aring <aahringo@redhat.com>
Sun, 28 Feb 2021 15:18:03 +0000 (10:18 -0500)
committerStefan Schmidt <stefan@datenfreihafen.org>
Tue, 2 Mar 2021 21:29:06 +0000 (22:29 +0100)
commit5f643f89723df2a251d3f7e23452f240da1e685f
treeb07df7413cdd247c344a17392d1a59338b8a9cb9
parent8cf19ca915f63b04334907c05f593f93abc01f78
net: ieee802154: nl-mac: fix check on panid

This patch fixes a null pointer derefence for panid handle by move the
check for the netlink variable directly before accessing them.

Reported-by: syzbot+d4c07de0144f6f63be3a@syzkaller.appspotmail.com
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20210228151817.95700-4-aahringo@redhat.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
net/ieee802154/nl-mac.c