diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-17 09:40:05 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-11-17 09:40:05 -0800 |
commit | 864f83a1f65bc8614705fc7c053969bb09939215 (patch) | |
tree | 09193cd44525e6cc542cb289106a1067f83264a1 /drivers | |
parent | 8005c49d9aea74d382f474ce11afbbc7d7130bec (diff) | |
parent | 176155dac13f528e0a58c14dc322623219365d91 (diff) |
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto fix from Herbert Xu:
"This fixes a bug in the qat driver where a user-space pointer is
dereferenced"
* 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6:
crypto: qat - don't use userspace pointer
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/crypto/qat/qat_common/adf_ctl_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/crypto/qat/qat_common/adf_ctl_drv.c b/drivers/crypto/qat/qat_common/adf_ctl_drv.c index 03856ad280b9..473d36d91644 100644 --- a/drivers/crypto/qat/qat_common/adf_ctl_drv.c +++ b/drivers/crypto/qat/qat_common/adf_ctl_drv.c @@ -198,7 +198,7 @@ static int adf_copy_key_value_data(struct adf_accel_dev *accel_dev, goto out_err; } - params_head = section_head->params; + params_head = section.params; while (params_head) { if (copy_from_user(&key_val, (void __user *)params_head, |