]> git.baikalelectronics.ru Git - kernel.git/commit
[NET_SCHED]: cls_fw: fix NULL pointer dereference
authorPatrick McHardy <kaber@trash.net>
Tue, 5 Dec 2006 21:46:13 +0000 (13:46 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Thu, 7 Dec 2006 02:39:07 +0000 (18:39 -0800)
commite32bc9c3c202e3031b3e9e7ea755d9a8d318ddc8
treeb8b0993a2855372b037f6bbef2f4b67908b16ce8
parent4c3b6d2a09dfc78d124c0c6e0e26a183d848ad06
[NET_SCHED]: cls_fw: fix NULL pointer dereference

When the first fw classifier is initialized, there is a small window
between the ->init() and ->change() calls, during which the classifier
is active but not entirely set up and tp->root is still NULL (->init()
does nothing).

When a packet is queued during this window a NULL pointer dereference
occurs in fw_classify() when trying to dereference head->mask;

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