lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Message-ID: <20230503103108.3977352-1-Ilia.Gavrilov@infotecs.ru> Date: Wed, 3 May 2023 10:31:14 +0000 From: Gavrilov Ilia <Ilia.Gavrilov@...otecs.ru> To: Marcelo Ricardo Leitner <marcelo.leitner@...il.com> CC: Simon Horman <simon.horman@...igine.com>, Neil Horman <nhorman@...driver.com>, Xin Long <lucien.xin@...il.com>, "David S. Miller" <davem@...emloft.net>, Eric Dumazet <edumazet@...gle.com>, Jakub Kicinski <kuba@...nel.org>, Paolo Abeni <pabeni@...hat.com>, "linux-sctp@...r.kernel.org" <linux-sctp@...r.kernel.org>, "netdev@...r.kernel.org" <netdev@...r.kernel.org>, "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>, "lvc-project@...uxtesting.org" <lvc-project@...uxtesting.org> Subject: [PATCH net v3] sctp: remove unncessary check in sctp_sched_set_sched() The value of the 'sched' parameter of the function 'sctp_sched_set_sched' is checked on the calling side, so the internal check can be removed Found by InfoTeCS on behalf of Linux Verification Center (linuxtesting.org) with SVACE. Signed-off-by: Ilia.Gavrilov <Ilia.Gavrilov@...otecs.ru> --- V2: - Change the order of local variables - Specify the target tree in the subject V3: - Change description - Remove 'fixes' net/sctp/stream_sched.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/net/sctp/stream_sched.c b/net/sctp/stream_sched.c index 330067002deb..52d308bdb469 100644 --- a/net/sctp/stream_sched.c +++ b/net/sctp/stream_sched.c @@ -155,9 +155,6 @@ int sctp_sched_set_sched(struct sctp_association *asoc, if (old == n) return ret; - if (sched > SCTP_SS_MAX) - return -EINVAL; - if (old) sctp_sched_free_sched(&asoc->stream); -- 2.30.2
Powered by blists - more mailing lists