[PATCH] cryptocop: double spin_lock_irqsave()
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Cc: Mikael Starvik <starvik@axis.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
7259f0d05d
commit
f8da1f7465
@ -2051,7 +2051,6 @@ static void cryptocop_job_queue_close(void)
|
|||||||
spin_lock_irqsave(&cryptocop_process_lock, process_flags);
|
spin_lock_irqsave(&cryptocop_process_lock, process_flags);
|
||||||
|
|
||||||
/* Empty the job queue. */
|
/* Empty the job queue. */
|
||||||
spin_lock_irqsave(&cryptocop_process_lock, process_flags);
|
|
||||||
for (i = 0; i < cryptocop_prio_no_prios; i++){
|
for (i = 0; i < cryptocop_prio_no_prios; i++){
|
||||||
if (!list_empty(&(cryptocop_job_queues[i].jobs))){
|
if (!list_empty(&(cryptocop_job_queues[i].jobs))){
|
||||||
list_for_each_safe(node, tmp, &(cryptocop_job_queues[i].jobs)) {
|
list_for_each_safe(node, tmp, &(cryptocop_job_queues[i].jobs)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user