]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
deal with resource allocation bugs in arcmsr
authorAl Viro <viro@ftp.linux.org.uk>
Mon, 29 Oct 2007 05:08:38 +0000 (05:08 +0000)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 29 Oct 2007 14:41:33 +0000 (07:41 -0700)
commitdb3a91fe2b425c9adde47069efebdba44e665cef
tree85137ad8531f2dfa667bad11c82116c8f5feed48
parent142956af525002c5378e7d91d81a01189841a785
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>
drivers/scsi/arcmsr/arcmsr.h
drivers/scsi/arcmsr/arcmsr_hba.c