diff mbox

wistron_btns: fix a memory leak in wb_module_init error path

Message ID 1277706620.4148.2.camel@mola (mailing list archive)
State Accepted
Headers show

Commit Message

axel lin June 28, 2010, 6:30 a.m. UTC
None
diff mbox

Patch

diff --git a/drivers/input/misc/wistron_btns.c b/drivers/input/misc/wistron_btns.c
index 4dac8b7..55ce70e 100644
--- a/drivers/input/misc/wistron_btns.c
+++ b/drivers/input/misc/wistron_btns.c
@@ -1371,6 +1371,7 @@  static int __init wb_module_init(void)
 	platform_driver_unregister(&wistron_driver);
  err_unmap_bios:
 	unmap_bios();
+	kfree(keymap);
 
 	return err;
 }