]> git.baikalelectronics.ru Git - kernel.git/commit
ieee802154: verify packet size before trying to allocate it
authorSasha Levin <levinsasha928@gmail.com>
Mon, 2 Jul 2012 01:29:55 +0000 (01:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Jul 2012 06:49:30 +0000 (23:49 -0700)
commitcaa5704d3e75a4cd41d24d5d22f9d827eee2fc26
treeaf7f831e5570f8081bd6d973a3aef7195f8a8967
parentd43d27b19a34d2e25c0e2878e63176431103eb1c
ieee802154: verify packet size before trying to allocate it

Currently when sending data over datagram, the send function will attempt to
allocate any size passed on from the userspace.

We should make sure that this size is checked and limited. We'll limit it
to the MTU of the device, which is checked later anyway.

Signed-off-by: Sasha Levin <levinsasha928@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ieee802154/dgram.c