2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-01 18:24:23 +08:00

sctp: switch sctp_setsockopt_auth_key to use memzero_explicit

Switch from kzfree to sctp_setsockopt_auth_key + kfree to prepare for
moving the kfree to common code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Christoph Hellwig 2020-07-19 09:22:03 +02:00 committed by David S. Miller
parent 3564ef442a
commit 89fae01eef

View File

@ -3649,7 +3649,8 @@ static int sctp_setsockopt_auth_key(struct sock *sk,
}
out:
kzfree(authkey);
memzero_explicit(authkey, optlen);
kfree(authkey);
return ret;
}