]> git.baikalelectronics.ru Git - kernel.git/commit
net: ieee802154: fix null deref in parse dev addr
authorDan Robertson <dan@dlrobertson.com>
Fri, 23 Apr 2021 04:02:13 +0000 (00:02 -0400)
committerStefan Schmidt <stefan@datenfreihafen.org>
Fri, 23 Apr 2021 14:57:27 +0000 (16:57 +0200)
commitc83d0dd92950e0255fbd56d632a7d6476ca99c27
tree22413bb3aeeb6be9987b538cc27de757895c53ec
parenta6599e4df9f174398dd25e51ea0da910222bdcb3
net: ieee802154: fix null deref in parse dev addr

Fix a logic error that could result in a null deref if the user sets
the mode incorrectly for the given addr type.

Signed-off-by: Dan Robertson <dan@dlrobertson.com>
Acked-by: Alexander Aring <aahringo@redhat.com>
Link: https://lore.kernel.org/r/20210423040214.15438-2-dan@dlrobertson.com
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
net/ieee802154/nl802154.c