projects
/
platform
/
kernel
/
kernel-mfld-blackbay.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3d7c776
)
HID: Add null check for hidinput.
author
Jaikumar Ganesh
<jaikumarg@android.com>
Thu, 22 Sep 2011 00:18:56 +0000
(17:18 -0700)
committer
mgross
<mark.gross@intel.com>
Wed, 9 Nov 2011 20:24:25 +0000
(12:24 -0800)
Add null check for hidinput before calling input_register.
Change-Id: Ib3fc0507e4091192360f3395d13d489db9b5a4d2
Signed-off-by: Jaikumar Ganesh <jaikumarg@android.com>
drivers/hid/hid-input.c
patch
|
blob
|
history
diff --git
a/drivers/hid/hid-input.c
b/drivers/hid/hid-input.c
index
1b71bcd
..
1483c82
100644
(file)
--- a/
drivers/hid/hid-input.c
+++ b/
drivers/hid/hid-input.c
@@
-981,7
+981,7
@@
int hidinput_connect(struct hid_device *hid, unsigned int force)
}
}
- if (hid->driver->input_register &&
+ if (hid
input && hid
->driver->input_register &&
hid->driver->input_register(hid, hidinput))
goto out_cleanup;