]> git.baikalelectronics.ru Git - kernel.git/commit
[PKT_SCHED]: Fix datalen check in tcf_simp_init().
authorPatrick McHardy <kaber@trash.net>
Fri, 18 Apr 2008 06:19:55 +0000 (23:19 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Apr 2008 06:19:55 +0000 (23:19 -0700)
commit927a88d0a4189ce3309465e41f0a4b205e896ca6
treed0bd86075cf7437e9022955eb8813c388178f544
parent9b0dfe951bc67aa58bc9d08d4805c080249d5950
[PKT_SCHED]: Fix datalen check in tcf_simp_init().

datalen is unsigned so it can never be less than zero,
but that's ok because the attribute passed to nla_len()
has been validated and therefore a negative return
value is impossible.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_simple.c