]> 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)
commit9469d018e43025c893e884ab07e6a469f586cb3a
treec5443136aa55edfbd19ba7b41b9aced35338c140
parent13391508fcefff7fbb3cc7cae512c1e1232a1e2e
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