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)
commit9fdd04918a452980631ecc499317881c1d120b70
tree22413bb3aeeb6be9987b538cc27de757895c53ec
parent8a12f8836145ffe37e9c8733dce18c22fb668b66
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