projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
786240c
)
HID: Add null check for hidinput.
author
Jaikumar Ganesh
<jaikumarg@android.com>
Thu, 22 Sep 2011 00:18:56 +0000
(17:18 -0700)
committer
Jaikumar Ganesh
<jaikumarg@android.com>
Thu, 22 Sep 2011 00:19:38 +0000
(17:19 -0700)
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 1b71bcd7ba21890516beb2041a4143e7608fa5ff..1483c8296d57cb6b8a5463a59f1341412fba9b40 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;