sctp: fix an error code in sctp_sf_eat_auth()
authorDan Carpenter <dan.carpenter@linaro.org>
Fri, 9 Jun 2023 11:05:19 +0000 (14:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Jun 2023 08:36:27 +0000 (09:36 +0100)
commit75e6def3b26736e7ff80639810098c9074229737
tree487733e739b3db1db76017c7bd613b10843c5971
parenta0067dfcd9418fd3b0632bc59210d120d038a9c6
sctp: fix an error code in sctp_sf_eat_auth()

The sctp_sf_eat_auth() function is supposed to enum sctp_disposition
values and returning a kernel error code will cause issues in the
caller.  Change -ENOMEM to SCTP_DISPOSITION_NOMEM.

Fixes: 65b07e5d0d09 ("[SCTP]: API updates to suport SCTP-AUTH extensions.")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Acked-by: Xin Long <lucien.xin@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sctp/sm_statefuns.c