提交 0c7eb2eb 编写于 作者: A Al Viro 提交者: Linus Torvalds

fix reentrancy bug in arcmsr_get_iop_{r,w}qbuffer()

doh...
Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 6a7d26d5
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册