Skip to content

Commit

Permalink
crypto: qat - don't use userspace pointer
Browse files Browse the repository at this point in the history
Bugfix - don't dereference userspace pointer.

Cc: stable@vger.kernel.org
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Tadeusz Struk authored and Herbert Xu committed Nov 13, 2015
1 parent 4afa5f9 commit 176155d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/qat/qat_common/adf_ctl_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 176155d

Please sign in to comment.