aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorAl Viro <viro@ftp.linux.org.uk>2007-10-29 01:08:58 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-29 10:41:33 -0400
commit0c7eb2eb800c4afb2205bbaa1bc633eb29082fef (patch)
tree6fb870c6e399eaa57de68b37fe760613d656e40f /drivers
parent6a7d26d58a0f61cffddc8839067dfad10413b852 (diff)
fix reentrancy bug in arcmsr_get_iop_{r,w}qbuffer()
doh... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/arcmsr/arcmsr_hba.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/arcmsr/arcmsr_hba.c b/drivers/scsi/arcmsr/arcmsr_hba.c
index 4c1b3b4ae35b..2f34cdb0bec1 100644
--- a/drivers/scsi/arcmsr/arcmsr_hba.c
+++ b/drivers/scsi/arcmsr/arcmsr_hba.c
@@ -1068,7 +1068,7 @@ static void arcmsr_iop_message_wrote(struct AdapterControlBlock *acb)
1068 1068
1069struct QBUFFER __iomem *arcmsr_get_iop_rqbuffer(struct AdapterControlBlock *acb) 1069struct QBUFFER __iomem *arcmsr_get_iop_rqbuffer(struct AdapterControlBlock *acb)
1070{ 1070{
1071 static struct QBUFFER __iomem *qbuffer; 1071 struct QBUFFER __iomem *qbuffer = NULL;
1072 1072
1073 switch (acb->adapter_type) { 1073 switch (acb->adapter_type) {
1074 1074
@@ -1089,7 +1089,7 @@ struct QBUFFER __iomem *arcmsr_get_iop_rqbuffer(struct AdapterControlBlock *acb)
1089 1089
1090static struct QBUFFER __iomem *arcmsr_get_iop_wqbuffer(struct AdapterControlBlock *acb) 1090static struct QBUFFER __iomem *arcmsr_get_iop_wqbuffer(struct AdapterControlBlock *acb)
1091{ 1091{
1092 static struct QBUFFER __iomem *pqbuffer; 1092 struct QBUFFER __iomem *pqbuffer = NULL;
1093 1093
1094 switch (acb->adapter_type) { 1094 switch (acb->adapter_type) {
1095 1095