diff options
| -rw-r--r-- | include/uapi/linux/keyctl.h | 2 | ||||
| -rw-r--r-- | security/keys/dh.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/include/uapi/linux/keyctl.h b/include/uapi/linux/keyctl.h index 910cc4334b21..7b8c9e19bad1 100644 --- a/include/uapi/linux/keyctl.h +++ b/include/uapi/linux/keyctl.h | |||
| @@ -65,7 +65,7 @@ | |||
| 65 | 65 | ||
| 66 | /* keyctl structures */ | 66 | /* keyctl structures */ |
| 67 | struct keyctl_dh_params { | 67 | struct keyctl_dh_params { |
| 68 | __s32 dh_private; | 68 | __s32 private; |
| 69 | __s32 prime; | 69 | __s32 prime; |
| 70 | __s32 base; | 70 | __s32 base; |
| 71 | }; | 71 | }; |
diff --git a/security/keys/dh.c b/security/keys/dh.c index 3b602a1e27fa..711e89d8c415 100644 --- a/security/keys/dh.c +++ b/security/keys/dh.c | |||
| @@ -300,7 +300,7 @@ long __keyctl_dh_compute(struct keyctl_dh_params __user *params, | |||
| 300 | } | 300 | } |
| 301 | dh_inputs.g_size = dlen; | 301 | dh_inputs.g_size = dlen; |
| 302 | 302 | ||
| 303 | dlen = dh_data_from_key(pcopy.dh_private, &dh_inputs.key); | 303 | dlen = dh_data_from_key(pcopy.private, &dh_inputs.key); |
| 304 | if (dlen < 0) { | 304 | if (dlen < 0) { |
| 305 | ret = dlen; | 305 | ret = dlen; |
| 306 | goto out2; | 306 | goto out2; |
