[PATCH] Char: sx, request regions
Check regions if they are free before we touch them. Release them in failpaths. Signed-off-by: Jiri Slaby <jirislaby@gmail.com> Cc: Alan Cox <alan@lxorguk.ukuu.org.uk> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:

committed by
Linus Torvalds

parent
39103494fd
commit
30f4218ffc
@@ -35,6 +35,7 @@ struct sx_board {
|
||||
void __iomem *base;
|
||||
void __iomem *base2;
|
||||
unsigned long hw_base;
|
||||
resource_size_t hw_len;
|
||||
int eisa_base;
|
||||
int port_base; /* Number of the first port */
|
||||
struct sx_port *ports;
|
||||
|
Reference in New Issue
Block a user