mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-07-16 17:57:38 -04:00
Merge tag 'v6.19-p1' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto updates from Herbert Xu: "API: - Rewrite memcpy_sglist from scratch - Add on-stack AEAD request allocation - Fix partial block processing in ahash Algorithms: - Remove ansi_cprng - Remove tcrypt tests for poly1305 - Fix EINPROGRESS processing in authenc - Fix double-free in zstd Drivers: - Use drbg ctr helper when reseeding xilinx-trng - Add support for PCI device 0x115A to ccp - Add support of paes in caam - Add support for aes-xts in dthev2 Others: - Use likely in rhashtable lookup - Fix lockdep false-positive in padata by removing a helper" * tag 'v6.19-p1' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: (71 commits) crypto: zstd - fix double-free in per-CPU stream cleanup crypto: ahash - Zero positive err value in ahash_update_finish crypto: ahash - Fix crypto_ahash_import with partial block data crypto: lib/mpi - use min() instead of min_t() crypto: ccp - use min() instead of min_t() hwrng: core - use min3() instead of nested min_t() crypto: aesni - ctr_crypt() use min() instead of min_t() crypto: drbg - Delete unused ctx from struct sdesc crypto: testmgr - Add missing DES weak and semi-weak key tests Revert "crypto: scatterwalk - Move skcipher walk and use it for memcpy_sglist" crypto: scatterwalk - Fix memcpy_sglist() to always succeed crypto: iaa - Request to add Kanchana P Sridhar to Maintainers. crypto: tcrypt - Remove unused poly1305 support crypto: ansi_cprng - Remove unused ansi_cprng algorithm crypto: asymmetric_keys - fix uninitialized pointers with free attribute KEYS: Avoid -Wflex-array-member-not-at-end warning crypto: ccree - Correctly handle return of sg_nents_for_len crypto: starfive - Correctly handle return of sg_nents_for_len crypto: iaa - Fix incorrect return value in save_iaa_wq() crypto: zstd - Remove unnecessary size_t cast ...
This commit is contained in:
@@ -506,12 +506,6 @@ void __init padata_do_multithreaded(struct padata_mt_job *job)
|
||||
padata_works_free(&works);
|
||||
}
|
||||
|
||||
static void __padata_list_init(struct padata_list *pd_list)
|
||||
{
|
||||
INIT_LIST_HEAD(&pd_list->list);
|
||||
spin_lock_init(&pd_list->lock);
|
||||
}
|
||||
|
||||
/* Initialize all percpu queues used by serial workers */
|
||||
static void padata_init_squeues(struct parallel_data *pd)
|
||||
{
|
||||
@@ -521,7 +515,8 @@ static void padata_init_squeues(struct parallel_data *pd)
|
||||
for_each_cpu(cpu, pd->cpumask.cbcpu) {
|
||||
squeue = per_cpu_ptr(pd->squeue, cpu);
|
||||
squeue->pd = pd;
|
||||
__padata_list_init(&squeue->serial);
|
||||
INIT_LIST_HEAD(&squeue->serial.list);
|
||||
spin_lock_init(&squeue->serial.lock);
|
||||
INIT_WORK(&squeue->work, padata_serial_worker);
|
||||
}
|
||||
}
|
||||
@@ -534,7 +529,8 @@ static void padata_init_reorder_list(struct parallel_data *pd)
|
||||
|
||||
for_each_cpu(cpu, pd->cpumask.pcpu) {
|
||||
list = per_cpu_ptr(pd->reorder_list, cpu);
|
||||
__padata_list_init(list);
|
||||
INIT_LIST_HEAD(&list->list);
|
||||
spin_lock_init(&list->lock);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user