mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
crypto: qat - don't use userspace pointer
Bugfix - don't dereference userspace pointer. Cc: [email protected] Signed-off-by: Tadeusz Struk <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
This commit is contained in:
parent
4afa5f9617
commit
176155dac1
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue