Sfoglia il codice sorgente

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
Linus Torvalds 9 anni fa
parent
commit
864f83a1f6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      drivers/crypto/qat/qat_common/adf_ctl_drv.c

+ 1 - 1
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;
 			goto out_err;
 		}
 		}
 
 
-		params_head = section_head->params;
+		params_head = section.params;
 
 
 		while (params_head) {
 		while (params_head) {
 			if (copy_from_user(&key_val, (void __user *)params_head,
 			if (copy_from_user(&key_val, (void __user *)params_head,