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:
parent
3564ef442a
commit
89fae01eef
@ -3649,7 +3649,8 @@ static int sctp_setsockopt_auth_key(struct sock *sk,
|
||||
}
|
||||
|
||||
out:
|
||||
kzfree(authkey);
|
||||
memzero_explicit(authkey, optlen);
|
||||
kfree(authkey);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user