]> git.karo-electronics.de Git - karo-tx-linux.git/commit
net: sctp: sctp_auth_key_put: use kzfree instead of kfree
authorDaniel Borkmann <dborkman@redhat.com>
Thu, 7 Feb 2013 00:55:37 +0000 (00:55 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 1 May 2013 16:41:08 +0000 (09:41 -0700)
commita009d58e52a816355a2423729c9aeded56fc40d1
tree251e07e807e46ad37327fe442814596880476a36
parentd768ca1b9fae5c2ee68ad39e6b1b5e9fc23ca9bf
net: sctp: sctp_auth_key_put: use kzfree instead of kfree

[ Upstream commit 586c31f3bf04c290dc0a0de7fc91d20aa9a5ee53 ]

For sensitive data like keying material, it is common practice to zero
out keys before returning the memory back to the allocator. Thus, use
kzfree instead of kfree.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Acked-by: Vlad Yasevich <vyasevich@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/sctp/auth.c