diff options
author | Xin Long <lucien.xin@gmail.com> | 2022-12-01 02:04:31 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-12-02 07:14:23 +0300 |
commit | 7d802c8098c50fb7dcf5dfcb6466482e1f2b15e4 (patch) | |
tree | 20ea8941ed159b09bd7fa230efe237f0d43f4434 /crypto | |
parent | e6a34faf31fb7adb9b88f11186028affdf522cd5 (diff) | |
download | linux-7d802c8098c50fb7dcf5dfcb6466482e1f2b15e4.tar.xz |
sctp: delete free member from struct sctp_sched_ops
After commit 9ed7bfc79542 ("sctp: fix memory leak in
sctp_stream_outq_migrate()"), sctp_sched_set_sched() is the only
place calling sched->free(), and it can actually be replaced by
sched->free_sid() on each stream, and yet there's already a loop
to traverse all streams in sctp_sched_set_sched().
This patch adds a function sctp_sched_free_sched() where it calls
sched->free_sid() for each stream to replace sched->free() calls
in sctp_sched_set_sched() and then deletes the unused free member
from struct sctp_sched_ops.
Signed-off-by: Xin Long <lucien.xin@gmail.com>
Acked-by: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Link: https://lore.kernel.org/r/e10aac150aca2686cb0bd0570299ec716da5a5c0.1669849471.git.lucien.xin@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions