diff options
Diffstat (limited to 'drivers/input/misc/wistron_btns.c')
-rw-r--r-- | drivers/input/misc/wistron_btns.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/input/misc/wistron_btns.c b/drivers/input/misc/wistron_btns.c index 4dac8b79fcd4..12501de0c5cd 100644 --- a/drivers/input/misc/wistron_btns.c +++ b/drivers/input/misc/wistron_btns.c | |||
@@ -1347,7 +1347,7 @@ static int __init wb_module_init(void) | |||
1347 | 1347 | ||
1348 | err = map_bios(); | 1348 | err = map_bios(); |
1349 | if (err) | 1349 | if (err) |
1350 | return err; | 1350 | goto err_free_keymap; |
1351 | 1351 | ||
1352 | err = platform_driver_register(&wistron_driver); | 1352 | err = platform_driver_register(&wistron_driver); |
1353 | if (err) | 1353 | if (err) |
@@ -1371,6 +1371,8 @@ static int __init wb_module_init(void) | |||
1371 | platform_driver_unregister(&wistron_driver); | 1371 | platform_driver_unregister(&wistron_driver); |
1372 | err_unmap_bios: | 1372 | err_unmap_bios: |
1373 | unmap_bios(); | 1373 | unmap_bios(); |
1374 | err_free_keymap: | ||
1375 | kfree(keymap); | ||
1374 | 1376 | ||
1375 | return err; | 1377 | return err; |
1376 | } | 1378 | } |