Fix crypto_alloc_comp() error checking.
commit6c7ad737a3134d1b778bf60e7e4b323d662dfadd
authorHerbert Xu <herbert@gondor.apana.org.au>
Tue, 13 Nov 2007 10:48:28 +0000 (13 02:48 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 21 Nov 2007 17:25:54 +0000 (21 09:25 -0800)
tree466b73b5a64e9c03796e22fad9b5e7efc8b98f9c
parent3040f0698e8504e91603ddaea777107d68f91c99
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