[PATCH 1/3] Char: stallion, don't fail with less than max panels

From: Jiri Slaby
Date: Tue Jun 05 2007 - 17:21:18 EST


stallion, don't fail with less than max panels

Thanks to Ingo.

Signed-off-by: Jiri Slaby <jirislaby@xxxxxxxxx>
Cc: "Ingo Korb" <ingo@xxxxxxxx>

---
commit aa7cfc04f92ec2b20a07b29a89527d836a93d00f
tree 064efb1346d6efffcd59cce827e15116c836da5b
parent db6329f0ce9fe4e7773edcabfb97f63e4f4a948f
author Jiri Slaby <jirislaby@xxxxxxxxx> Mon, 04 Jun 2007 00:05:16 +0200
committer Jiri Slaby <jirislaby@xxxxxxxxx> Tue, 05 Jun 2007 23:14:27 +0200

drivers/char/stallion.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/char/stallion.c b/drivers/char/stallion.c
index e45113a..265abad 100644
--- a/drivers/char/stallion.c
+++ b/drivers/char/stallion.c
@@ -2172,7 +2172,7 @@ static int __devinit stl_initech(struct stlbrd *brdp)
}
status = inb(ioaddr + ECH_PNLSTATUS);
if ((status & ECH_PNLIDMASK) != nxtid)
- goto err_fr;
+ break;
panelp = kzalloc(sizeof(struct stlpanel), GFP_KERNEL);
if (!panelp) {
printk("STALLION: failed to allocate memory "
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/