deal with resource allocation bugs in arcmsr
a) for type B we should _not_ iounmap() acb->pmu; it's not ioremapped. b) for type B we should iounmap() two regions we _do_ ioremap. c) if ioremap() fails, we need to bail out (and clean up). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
@@ -348,14 +348,6 @@ struct MessageUnit_B
|
||||
uint32_t __iomem *ioctl_rbuffer_reg;
|
||||
};
|
||||
|
||||
struct MessageUnit
|
||||
{
|
||||
union
|
||||
{
|
||||
struct MessageUnit_A pmu_A;
|
||||
struct MessageUnit_B pmu_B;
|
||||
} u;
|
||||
};
|
||||
/*
|
||||
*******************************************************************************
|
||||
** Adapter Control Block
|
||||
@@ -375,7 +367,6 @@ struct AdapterControlBlock
|
||||
uint32_t outbound_int_enable;
|
||||
|
||||
union {
|
||||
struct MessageUnit * pmu;
|
||||
struct MessageUnit_A __iomem * pmuA;
|
||||
struct MessageUnit_B * pmuB;
|
||||
};
|
||||
|
Reference in New Issue
Block a user