]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerSasha Levin <sashal@kernel.org>
Wed, 30 Jun 2021 12:48:10 +0000 (08:48 -0400)
commit5f728ec65485625e30f46e5b4917ff023ad29ea0
treef6234829a728b50bea580d302906a3ae7536216c
parenteb575cd5d7f60241d016fdd13a9e86d962093c9b
net: ieee802154: fix null deref in parse dev addr

[ Upstream commit 9fdd04918a452980631ecc499317881c1d120b70 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/ieee802154/nl802154.c