-
- Downloads
[CRYPTO]: crypto_free_tfm() callers no longer need to check for NULL
Since the patch to add a NULL short-circuit to crypto_free_tfm() went in, there's no longer any need for callers of that function to check for NULL. This patch removes the redundant NULL checks and also a few similar checks for NULL before calls to kfree() that I ran into while doing the crypto_free_tfm bits. I've succesfuly compile tested this patch, and a kernel with the patch applied boots and runs just fine. When I posted the patch to LKML (and other lists/people on Cc) it drew the following comments : J. Bruce Fields commented "I've no problem with the auth_gss or nfsv4 bits.--b." Sridhar Samudrala said "sctp change looks fine." Herbert Xu signed off on the patch. So, I guess this is ready to be dropped into -mm and eventually mainline. Signed-off-by:Jesper Juhl <jesper.juhl@gmail.com> Signed-off-by:
Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- drivers/net/wireless/airo.c 1 addition, 2 deletionsdrivers/net/wireless/airo.c
- fs/nfsd/nfs4recover.c 1 addition, 2 deletionsfs/nfsd/nfs4recover.c
- net/ipv4/ah4.c 6 additions, 12 deletionsnet/ipv4/ah4.c
- net/ipv4/esp4.c 8 additions, 16 deletionsnet/ipv4/esp4.c
- net/ipv4/ipcomp.c 1 addition, 2 deletionsnet/ipv4/ipcomp.c
- net/ipv6/addrconf.c 2 additions, 4 deletionsnet/ipv6/addrconf.c
- net/ipv6/ah6.c 6 additions, 12 deletionsnet/ipv6/ah6.c
- net/ipv6/esp6.c 8 additions, 16 deletionsnet/ipv6/esp6.c
- net/ipv6/ipcomp6.c 1 addition, 2 deletionsnet/ipv6/ipcomp6.c
- net/sctp/endpointola.c 1 addition, 2 deletionsnet/sctp/endpointola.c
- net/sctp/socket.c 1 addition, 2 deletionsnet/sctp/socket.c
- net/sunrpc/auth_gss/gss_krb5_crypto.c 1 addition, 2 deletionsnet/sunrpc/auth_gss/gss_krb5_crypto.c
- net/sunrpc/auth_gss/gss_krb5_mech.c 3 additions, 6 deletionsnet/sunrpc/auth_gss/gss_krb5_mech.c
- net/sunrpc/auth_gss/gss_spkm3_mech.c 4 additions, 8 deletionsnet/sunrpc/auth_gss/gss_spkm3_mech.c
Loading
Please register or sign in to comment