[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1280594070-3328-1-git-send-email-segooon@gmail.com>
Date: Sat, 31 Jul 2010 20:34:30 +0400
From: Kulikov Vasiliy <segooon@...il.com>
To: kernel-janitors@...r.kernel.org
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] video: igafb: introduce lost 'return'
If iga_init() fails, code releases resources and continues to use it.
It seems that after releasing resources 'return' should be.
Signed-off-by: Kulikov Vasiliy <segooon@...il.com>
---
drivers/video/igafb.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/video/igafb.c b/drivers/video/igafb.c
index 15d2001..c4e6fc0 100644
--- a/drivers/video/igafb.c
+++ b/drivers/video/igafb.c
@@ -531,6 +531,7 @@ int __init igafb_init(void)
iounmap(info->screen_base);
kfree(par->mmap_map);
kfree(info);
+ return -ENODEV;
}
#ifdef CONFIG_SPARC
--
1.7.0.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists