cls_flow: add sanity check for the packet length
authorChangli Gao <xiaosuo@gmail.com>
Wed, 4 Aug 2010 04:48:12 +0000 (04:48 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Aug 2010 04:53:15 +0000 (21:53 -0700)
commit4b95c3d40d7d9927438ed7b7b49c84c60e27b65b
tree322f6e8e9f044accae4eda032b04d1daeec00358
parentf9599ce11192f24dbb0f4fdb70121a05edc58342
cls_flow: add sanity check for the packet length

The packet length should be checked before the packet data is dereferenced.

Signed-off-by: Changli Gao <xiaosuo@gmail.com>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_flow.c