]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Fix crypto_alloc_comp() error checking.
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 13 Nov 2007 10:48:28 +0000 (02:48 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 16 Nov 2007 16:27:38 +0000 (08:27 -0800)
commitbe8962a15857ee7b43bc66f718d7e8987f484fc8
tree7216bd9c4b488c4b7c0a594f44ea5288417bad5a
parent9def747b654622c8ce0936ccb0f4670f978c138e
Fix crypto_alloc_comp() error checking.

[IPSEC]: Fix crypto_alloc_comp error checking

[ Upstream commit: 4999f3621f4da622e77931b3d33ada6c7083c705 ]

The function crypto_alloc_comp returns an errno instead of NULL
to indicate error.  So it needs to be tested with IS_ERR.

This is based on a patch by Vicenç Beltran Querol.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
net/ipv4/ipcomp.c
net/ipv6/ipcomp6.c