Skip to content

Commit eeddbe6

Browse files
committed
Merge tag 's390-5.9-7' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux
Pull s390 fix from Vasily Gorbik: "Fix truncated ZCRYPT_PERDEV_REQCNT ioctl result. Copy entire reqcnt list" * tag 's390-5.9-7' of git://git.kernel.org/pub/scm/linux/kernel/git/s390/linux: s390/zcrypt: Fix ZCRYPT_PERDEV_REQCNT ioctl
2 parents 8fb1e91 + f7e8098 commit eeddbe6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

drivers/s390/crypto/zcrypt_api.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1449,7 +1449,8 @@ static long zcrypt_unlocked_ioctl(struct file *filp, unsigned int cmd,
14491449
if (!reqcnt)
14501450
return -ENOMEM;
14511451
zcrypt_perdev_reqcnt(reqcnt, AP_DEVICES);
1452-
if (copy_to_user((int __user *) arg, reqcnt, sizeof(reqcnt)))
1452+
if (copy_to_user((int __user *) arg, reqcnt,
1453+
sizeof(u32) * AP_DEVICES))
14531454
rc = -EFAULT;
14541455
kfree(reqcnt);
14551456
return rc;

0 commit comments

Comments
 (0)