diff options
author | Xin Long <[email protected]> | 2017-11-26 20:56:07 +0800 |
---|---|---|
committer | David S. Miller <[email protected]> | 2017-11-28 15:55:44 -0500 |
commit | a8dd397903a6e57157f6265911f7d35681364427 (patch) | |
tree | ed77ddc6748e76f18d5df0874c8a5124877aab14 /drivers/fpga/fpga-mgr.c | |
parent | f85729d07cd649bf69820f14bdad36326a24a699 (diff) |
sctp: use right member as the param of list_for_each_entry
Commit d04adf1b3551 ("sctp: reset owner sk for data chunks on out queues
when migrating a sock") made a mistake that using 'list' as the param of
list_for_each_entry to traverse the retransmit, sacked and abandoned
queues, while chunks are using 'transmitted_list' to link into these
queues.
It could cause NULL dereference panic if there are chunks in any of these
queues when peeling off one asoc.
So use the chunk member 'transmitted_list' instead in this patch.
Fixes: d04adf1b3551 ("sctp: reset owner sk for data chunks on out queues when migrating a sock")
Signed-off-by: Xin Long <[email protected]>
Acked-by: Marcelo Ricardo Leitner <[email protected]>
Acked-by: Neil Horman <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions