]> err.no Git - linux-2.6/commit
[NET_SCHED]: cls_basic: fix NULL pointer dereference
authorPatrick McHardy <kaber@trash.net>
Sun, 25 Mar 2007 05:13:06 +0000 (22:13 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 26 Mar 2007 01:48:11 +0000 (18:48 -0700)
commitd3fa76ee6b4a8dd0efda4e78e96f5b19533b3dea
treef960e24f323770fd3f26b0b14107cf3b0c0c0024
parentc93a882ebe673b5e6da0a70fd433f7517e032d23
[NET_SCHED]: cls_basic: fix NULL pointer dereference

cls_basic doesn't allocate tp->root before it is linked into the
active classifier list, resulting in a NULL pointer dereference
when packets hit the classifier before its ->change function is
called.

Reported by Chris Madden <chris@reflexsecurity.com>

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