Commit 16f73646 authored by Alexander Aring's avatar Alexander Aring Committed by Zheng Zengkai
Browse files

net: ieee802154: nl-mac: fix check on panid



stable inclusion
from stable-5.10.30
commit 8bfb45fa131d90a8b9ab137b63d146658b196b82
bugzilla: 51791

--------------------------------

commit 6f7f657f upstream.

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

Reported-by: default avatar <syzbot+d4c07de0144f6f63be3a@syzkaller.appspotmail.com>
Signed-off-by: default avatarAlexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20210228151817.95700-4-aahringo@redhat.com


Signed-off-by: default avatarStefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatar  Weilong Chen <chenweilong@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 78f07a82
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment