diff options
author | Tadeusz Struk <tadeusz.struk@intel.com> | 2015-10-22 00:57:09 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-20 01:28:22 +0300 |
commit | 08b8fa6165d4bbd4a0b2b330677974748eb8fc55 (patch) | |
tree | 2b1d205f6e6ff2fafe6d9f9246fbb128df88106e | |
parent | d4f9756c6ad78cbb728549e1e0dd7afafd8069a6 (diff) | |
download | linux-08b8fa6165d4bbd4a0b2b330677974748eb8fc55.tar.xz |
crypto: qat - don't use userspace pointer
commit 176155dac13f528e0a58c14dc322623219365d91 upstream.
Bugfix - don't dereference userspace pointer.
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-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 cd8a12af8ec5..35bada05608a 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, |