net: ieee802154: stop dump llsec params for monitors
authorAlexander Aring <aahringo@redhat.com>
Mon, 5 Apr 2021 00:30:54 +0000 (20:30 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Apr 2021 06:42:14 +0000 (08:42 +0200)
commita22115c3492f209c4a5a8d04a0da8c4f29f25a0e
tree33775493ceec4d1409b7c31b82f46dfe955ce608
parentf872fb3feadd2212b4272b840decbf6c55df1c6a
net: ieee802154: stop dump llsec params for monitors

commit 1534efc7bbc1121e92c86c2dabebaf2c9dcece19 upstream.

This patch stops dumping llsec params for monitors which we don't support
yet. Otherwise we will access llsec mib which isn't initialized for
monitors.

Reported-by: syzbot+cde43a581a8e5f317bc2@syzkaller.appspotmail.com
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20210405003054.256017-16-aahringo@redhat.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ieee802154/nl802154.c