commit | f3c66e5205f2f29fb75c9609fbe5663f1220abf2 | [log] [tgz] |
---|---|---|
author | Michael Scott <michael.scott@linaro.org> | Wed Jan 11 15:23:58 2017 -0800 |
committer | Jukka Rissanen <jukka.rissanen@linux.intel.com> | Fri Jan 20 16:23:16 2017 +0200 |
tree | 69032ac1805ff390c30f518b796a61db925c9583 | |
parent | 7b674cb287c1a34f4654fd41944a0e235633ae16 [diff] |
net: ipv6: fix NULL reference in handle_ra_neighbor lladdr.addr doesn't point to any storage value when it's handed off to the net_nbuf_read function. This results in a write to an undefined area of memory. Fix this by pointing lladdr.addr to a net_linkaddr_storage structure's byte storage array which can handle the maximum specified length. Change-Id: I05e0a0420b262ba1e5ac95cebe1f0d91f54878ce Signed-off-by: Michael Scott <michael.scott@linaro.org>