af_key: return error if pfkey_xfrm_policy2msg_prep() fails
authorDan Carpenter <error27@gmail.com>
Wed, 24 Mar 2010 01:47:00 +0000 (01:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Mar 2010 20:28:27 +0000 (13:28 -0700)
commit9a127aad4d60968fba96622008ea0d243688f2b0
treeab6df3df50405736b7f51b941da6c4d0b368a847
parent03e6d819c2cb2cc8ce5642669a0a7c72336ee7a2
af_key: return error if pfkey_xfrm_policy2msg_prep() fails

The original code saved the error value but just returned 0 in the end.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Jamal Hadi Salim <hadi@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/key/af_key.c