sctp: out_qlen should be updated when pruning unsent queue
authorXin Long <lucien.xin@gmail.com>
Sat, 18 Mar 2017 12:03:59 +0000 (20:03 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Dec 2017 13:23:38 +0000 (14:23 +0100)
commit9ed8f0fabae57cd0dd993e815fbe15135f2070fd
tree08aa30a2f46d9140bbe052fc063f134f5101faa0
parentb4cf187a1bc533839e75278dca74dfbb31d32d82
sctp: out_qlen should be updated when pruning unsent queue

[ Upstream commit 23bb09cfbe04076ef647da3889a5a5ab6cbe6f15 ]

This patch is to fix the issue that sctp_prsctp_prune_sent forgot
to update q->out_qlen when removing a chunk from unsent queue.

Fixes: 8dbdf1f5b09c ("sctp: implement prsctp PRIO policy")
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sctp/outqueue.c