6lowpan: read data from skb safely
author[email protected] <[email protected]>
Mon, 25 Jun 2012 03:49:01 +0000 (03:49 +0000)
committerDavid S. Miller <[email protected]>
Mon, 25 Jun 2012 23:40:31 +0000 (16:40 -0700)
commitc5d3687f6cfed185c2c0b29a5b33273ebd2c0781
treec5443136aa55edfbd19ba7b41b9aced35338c140
parent1d5873e9d75bb72012a6c1327a368d0d2b13581f
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 <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/ieee802154/6lowpan.c