diff options
author | Ting Liu <ting.liu@freescale.com> | 2015-10-21 23:30:36 +0800 |
---|---|---|
committer | Zhenhua Luo <zhenhua.luo@nxp.com> | 2015-12-28 11:01:00 +0800 |
commit | a2f6f66fb22a8ff117dd8dbade99bee028f61cc3 (patch) | |
tree | b0f2d4e4557b1a1359f68295068a9b2c68c9b707 /recipes-kernel/cryptodev/files/0024-fix-COMPAT_CIOCKEY-ioctl-command-number.patch | |
parent | 6f8a4a8a2da156ebea842cdf79e862c90c138ed5 (diff) | |
download | meta-fsl-ppc-a2f6f66fb22a8ff117dd8dbade99bee028f61cc3.tar.gz |
cryptodev: update to match commit 53e4d0fe
New commits imported:
53e4d0f fix COMPAT_CIOCKEY ioctl command number
7d0d0de remove MAY_BACKLOG flag from requests
85146b8 fix double free pkc->req on error
4078382 check return codes for copy to/from user functions
Signed-off-by: Ting Liu <ting.liu@freescale.com>
Signed-off-by: Zhenhua Luo <zhenhua.luo@nxp.com>
Diffstat (limited to 'recipes-kernel/cryptodev/files/0024-fix-COMPAT_CIOCKEY-ioctl-command-number.patch')
-rw-r--r-- | recipes-kernel/cryptodev/files/0024-fix-COMPAT_CIOCKEY-ioctl-command-number.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes-kernel/cryptodev/files/0024-fix-COMPAT_CIOCKEY-ioctl-command-number.patch b/recipes-kernel/cryptodev/files/0024-fix-COMPAT_CIOCKEY-ioctl-command-number.patch new file mode 100644 index 0000000..8d0bd8b --- /dev/null +++ b/recipes-kernel/cryptodev/files/0024-fix-COMPAT_CIOCKEY-ioctl-command-number.patch | |||
@@ -0,0 +1,29 @@ | |||
1 | From 53e4d0fe4a334dae3df32b2053e4ebdfda2e9148 Mon Sep 17 00:00:00 2001 | ||
2 | From: Tudor Ambarus <tudor.ambarus@freescale.com> | ||
3 | Date: Tue, 27 Oct 2015 15:51:02 +0200 | ||
4 | Subject: [PATCH] fix COMPAT_CIOCKEY ioctl command number | ||
5 | |||
6 | CIOCKEY and COMPAT_CIOCKEY had different command numbers, | ||
7 | so that 32-bit applications got EINVAL error on 64-bit kernel. | ||
8 | |||
9 | Signed-off-by: Tudor Ambarus <tudor.ambarus@freescale.com> | ||
10 | --- | ||
11 | cryptodev_int.h | 2 +- | ||
12 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
13 | |||
14 | diff --git a/cryptodev_int.h b/cryptodev_int.h | ||
15 | index c83c885..cb005d7 100644 | ||
16 | --- a/cryptodev_int.h | ||
17 | +++ b/cryptodev_int.h | ||
18 | @@ -132,7 +132,7 @@ struct compat_crypt_auth_op { | ||
19 | /* compat ioctls, defined for the above structs */ | ||
20 | #define COMPAT_CIOCGSESSION _IOWR('c', 102, struct compat_session_op) | ||
21 | #define COMPAT_CIOCCRYPT _IOWR('c', 104, struct compat_crypt_op) | ||
22 | -#define COMPAT_CIOCKEY _IOW('c', 105, struct compat_crypt_kop) | ||
23 | +#define COMPAT_CIOCKEY _IOWR('c', 105, struct compat_crypt_kop) | ||
24 | #define COMPAT_CIOCASYNCCRYPT _IOW('c', 107, struct compat_crypt_op) | ||
25 | #define COMPAT_CIOCASYNCFETCH _IOR('c', 108, struct compat_crypt_op) | ||
26 | #define COMPAT_CIOCAUTHCRYPT _IOWR('c', 109, struct compat_crypt_auth_op) | ||
27 | -- | ||
28 | 2.3.3 | ||
29 | |||