projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f11a7c0
)
Input: allow passing NULL to input_free_device()
author
Dmitry Torokhov
<dtor_core@ameritech.net>
Wed, 26 Apr 2006 04:13:57 +0000
(
00:13
-0400)
committer
Dmitry Torokhov
<dtor_core@ameritech.net>
Wed, 26 Apr 2006 04:13:57 +0000
(
00:13
-0400)
Many drivers rely on input_free_device() behaving like kfree().
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
include/linux/input.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/input.h
b/include/linux/input.h
index b0e612dda0cf2887e364f95010f136d87be2fdcd..16c19d710a4dcce2d6b666a9e10920f6c042b876 100644
(file)
--- a/
include/linux/input.h
+++ b/
include/linux/input.h
@@
-1016,7
+1016,8
@@
static inline void input_put_device(struct input_dev *dev)
static inline void input_free_device(struct input_dev *dev)
{
- input_put_device(dev);
+ if (dev)
+ input_put_device(dev);
}
int input_register_device(struct input_dev *);