]> err.no Git - linux-2.6/commit
[XFRM/RTNETLINK]: Decrement qlen properly in {xfrm_,rt}netlink_rcv().
authorDavid S. Miller <davem@sunset.davemloft.net>
Tue, 3 May 2005 23:15:59 +0000 (16:15 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 May 2005 23:15:59 +0000 (16:15 -0700)
commit0f4821e7b93fe72e89b8ff393bd8e705bd178aa5
treee9116a4ce6593b186c3962fcdc5baf73f243d0b5
parent09e14305982efc2f3b509d3c50ef5dcbff64a998
[XFRM/RTNETLINK]: Decrement qlen properly in {xfrm_,rt}netlink_rcv().

If we free up a partially processed packet because it's
skb->len dropped to zero, we need to decrement qlen because
we are dropping out of the top-level loop so it will do
the decrement for us.

Spotted by Herbert Xu.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c
net/xfrm/xfrm_user.c