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>
This commit is contained in:
Al Viro 2007-10-29 05:08:58 +00:00 committed by Linus Torvalds
parent 6a7d26d58a
commit 0c7eb2eb80

View File

@ -1068,7 +1068,7 @@ static void arcmsr_iop_message_wrote(struct AdapterControlBlock *acb)
struct QBUFFER __iomem *arcmsr_get_iop_rqbuffer(struct AdapterControlBlock *acb)
{
static struct QBUFFER __iomem *qbuffer;
struct QBUFFER __iomem *qbuffer = NULL;
switch (acb->adapter_type) {
@ -1089,7 +1089,7 @@ struct QBUFFER __iomem *arcmsr_get_iop_rqbuffer(struct AdapterControlBlock *acb)
static struct QBUFFER __iomem *arcmsr_get_iop_wqbuffer(struct AdapterControlBlock *acb)
{
static struct QBUFFER __iomem *pqbuffer;
struct QBUFFER __iomem *pqbuffer = NULL;
switch (acb->adapter_type) {