summaryrefslogtreecommitdiffstats
path: root/security/keys/compat.c
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-25 08:34:47 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-03-25 08:34:47 -0700
commit91721197def2fc69abf152c47dbb87eed0f13333 (patch)
tree80b4b92f44a7a3b1ada346c175489b0274fe1344 /security/keys/compat.c
parent8f46baaa7ec6cd0851794020b31958e64679dd26 (diff)
parent8bb9660418e05bb1845ac1a2428444d78e322cc7 (diff)
downloadop-kernel-dev-91721197def2fc69abf152c47dbb87eed0f13333.zip
op-kernel-dev-91721197def2fc69abf152c47dbb87eed0f13333.tar.gz
Merge 3.9-rc4 into driver-core-next
Diffstat (limited to 'security/keys/compat.c')
-rw-r--r--security/keys/compat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/security/keys/compat.c b/security/keys/compat.c
index 1c26176..d65fa7f 100644
--- a/security/keys/compat.c
+++ b/security/keys/compat.c
@@ -40,12 +40,12 @@ static long compat_keyctl_instantiate_key_iov(
ARRAY_SIZE(iovstack),
iovstack, &iov);
if (ret < 0)
- return ret;
+ goto err;
if (ret == 0)
goto no_payload_free;
ret = keyctl_instantiate_key_common(id, iov, ioc, ret, ringid);
-
+err:
if (iov != iovstack)
kfree(iov);
return ret;
OpenPOWER on IntegriCloud