OSDN Git Service

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)
commit6f7f657f24405f426212c09260bf7fe8a52cef33
treeb07df7413cdd247c344a17392d1a59338b8a9cb9
parent27c746869e1a135dffc2f2a80715bb7aa00445b4
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