]> 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)
commit2f70c59ddd337284346da9bbb3e6b81c7e40e9e4
treeb07df7413cdd247c344a17392d1a59338b8a9cb9
parent3a6dc59b0b2633269c83fa930e2d4442de38bca7
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