]> git.baikalelectronics.ru Git - kernel.git/commit
ieee802154: hwsim: fix off-by-one in parse nested
authorAlexander Aring <aring@mojatatu.com>
Thu, 29 Nov 2018 22:41:54 +0000 (17:41 -0500)
committerStefan Schmidt <stefan@datenfreihafen.org>
Sun, 2 Dec 2018 10:08:46 +0000 (11:08 +0100)
commit10d97a838f4704472d7fbba6981c0d514add040c
tree525b9816d5c0af67941cbc0be7e381f4819b3537
parent603aa92d3365b379b2354218303de8dc5dfa7b4f
ieee802154: hwsim: fix off-by-one in parse nested

This patch fixes a off-by-one mistake in nla_parse_nested() functions of
mac802154_hwsim driver. I had to enabled stack protector so I was able
to reproduce it.

Reference: https://github.com/linux-wpan/wpan-tools/issues/17

Signed-off-by: Alexander Aring <aring@mojatatu.com>
Signed-off-by: Stefan Schmidt <stefan@datenfreihafen.org>
drivers/net/ieee802154/mac802154_hwsim.c