Commit 671d40f4 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds

paride drivers: initialize spinlocks

pcd_lock and pf_spin_lock are passed to blk_init_queue() which, seeing them
as valid lock pointer, sets it as ->queue_lock.

The problem is that pcd_lock and pf_spin_lock aren't initialized anywhere.
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@sw.ru>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f318a63b
...@@ -140,7 +140,7 @@ enum {D_PRT, D_PRO, D_UNI, D_MOD, D_SLV, D_DLY}; ...@@ -140,7 +140,7 @@ enum {D_PRT, D_PRO, D_UNI, D_MOD, D_SLV, D_DLY};
#include <linux/blkdev.h> #include <linux/blkdev.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
static spinlock_t pcd_lock; static DEFINE_SPINLOCK(pcd_lock);
module_param(verbose, bool, 0644); module_param(verbose, bool, 0644);
module_param(major, int, 0); module_param(major, int, 0);
......
...@@ -154,7 +154,7 @@ enum {D_PRT, D_PRO, D_UNI, D_MOD, D_SLV, D_LUN, D_DLY}; ...@@ -154,7 +154,7 @@ enum {D_PRT, D_PRO, D_UNI, D_MOD, D_SLV, D_LUN, D_DLY};
#include <linux/blkpg.h> #include <linux/blkpg.h>
#include <asm/uaccess.h> #include <asm/uaccess.h>
static spinlock_t pf_spin_lock; static DEFINE_SPINLOCK(pf_spin_lock);
module_param(verbose, bool, 0644); module_param(verbose, bool, 0644);
module_param(major, int, 0); module_param(major, int, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment