Merge branch 'next-general' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris...
[sfrench/cifs-2.6.git] / security / keys / keyctl.c
index 7bbe03593e581116c0a9678a9e50788fdbac80ed..3e4053a217c326bc92f7c9488293bd2f45f2b974 100644 (file)
@@ -1752,7 +1752,7 @@ SYSCALL_DEFINE5(keyctl, int, option, unsigned long, arg2, unsigned long, arg3,
                        return -EINVAL;
                return keyctl_pkey_query((key_serial_t)arg2,
                                         (const char __user *)arg4,
-                                        (struct keyctl_pkey_query *)arg5);
+                                        (struct keyctl_pkey_query __user *)arg5);
 
        case KEYCTL_PKEY_ENCRYPT:
        case KEYCTL_PKEY_DECRYPT: