summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMartin Townsend <mtownsend1973@gmail.com>2014-11-06 19:15:13 (GMT)
committerMarcel Holtmann <marcel@holtmann.org>2014-11-06 21:09:48 (GMT)
commit56b2c3eea398c772dd895dc62c18cbdd1ba127b1 (patch)
treea4d6ab3f6bbf38f4c5b3cb66cc6f77d142397e32 /lib
parent9645c76c7c233da82ff7aced0177c8a131a51e70 (diff)
downloadlinux-56b2c3eea398c772dd895dc62c18cbdd1ba127b1.tar.xz
6lowpan: move skb_free from error paths in decompression
Currently we ensure that the skb is freed on every error path in IPHC decompression which makes it easy to introduce skb leaks. By centralising the skb_free into the receive function it makes future decompression routines easier to maintain. It does come at the expense of ensuring that the skb passed into the decompression routine must not be copied. Signed-off-by: Martin Townsend <mtownsend1973@gmail.com> Acked-by: Jukka Rissanen <jukka.rissanen@linux.intel.com> Acked-by: Alexander Aring <alex.aring@gmail.com> Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions