Skip to contentSkip to conversation

crypto: qat - don't use userspace pointer

PATCH RESEND Applied Tadeusz Struk 2 participants 2 messages Oct 21, 2015 – Nov 13, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 crypto: qat - don't use userspace pointer

Bugfix - don't dereference userspace pointer.

Resend with the correct way for inclusion in the stable kernel.

---
 drivers/crypto/qat/qat_common/adf_ctl_drv.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/crypto/qat/qat_common/adf_ctl_drv.c +1 -1
index ebc1c63..fcb790e 100644
@@ -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,
maintainer Applied
#1 lore raw
Quoted 3 lines · Tadeusz Struk

Bugfix - don't dereference userspace pointer.

Resend with the correct way for inclusion in the stable kernel.

Applied to crypto.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt