]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[NET_SCHED] cls_u32: refcounting fix for u32_delete()
authorJarek Poplawski <jarkao2@gmail.com>
Sun, 13 Apr 2008 01:37:13 +0000 (18:37 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 13 Apr 2008 01:37:13 +0000 (18:37 -0700)
commite56cfad132f2ae269082359d279c17230c987e74
tree6867ab5499fe617a16b15f1572b5d22d863d2524
parent028b027524b162eef90839a92ba4b8bddf23e06c
[NET_SCHED] cls_u32: refcounting fix for u32_delete()

Deleting of nonroot hnodes mostly doesn't work in u32_delete():
refcnt == 1 is expected, but such hnodes' refcnts are initialized
with 0 and charged only with "link" nodes. Now they'll start with
1 like usual. Thanks to Patrick McHardy for an improving suggestion.

Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Acked-by: Jamal Hadi Salim <hadi@cyberus.ca>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/cls_u32.c