]> git.baikalelectronics.ru Git - kernel.git/commit
6lowpan: read data from skb safely
authoralex.bluesman.smirnov@gmail.com <alex.bluesman.smirnov@gmail.com>
Mon, 25 Jun 2012 03:49:01 +0000 (03:49 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Jun 2012 23:40:31 +0000 (16:40 -0700)
commit4cd6d5b699f8587a42e1040efd10b2a01f9debd0
treec5443136aa55edfbd19ba7b41b9aced35338c140
parentfceadfa5dfedf352e957eede6eb521010451b28b
6lowpan: read data from skb safely

Check if skb buffer can pull requested amount of bytes and return
an error in opposite case.

Signed-off-by: Alexander Smirnov <alex.bluesman.smirnov@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/6lowpan.c