projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d85170e
)
Staging: panel: fix memory leak
author
Kulikov Vasiliy
<segooon@gmail.com>
Mon, 12 Jul 2010 14:48:24 +0000
(18:48 +0400)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Thu, 22 Jul 2010 18:34:52 +0000
(11:34 -0700)
panel_bind_key() must free allocated memory.
Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/panel/panel.c
patch
|
blob
|
history
diff --git
a/drivers/staging/panel/panel.c
b/drivers/staging/panel/panel.c
index
3e07e41
..
aeca01c
100644
(file)
--- a/
drivers/staging/panel/panel.c
+++ b/
drivers/staging/panel/panel.c
@@
-1995,8
+1995,10
@@
static struct logical_input *panel_bind_key(char *name, char *press,
return NULL;
}
if (!input_name2mask(name, &key->mask, &key->value, &scan_mask_i,
- &scan_mask_o))
+ &scan_mask_o)) {
+ kfree(key);
return NULL;
+ }
key->type = INPUT_TYPE_KBD;
key->state = INPUT_ST_LOW;