aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/input.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/input.h b/include/linux/input.h
index b0e612dda0cf..16c19d710a4d 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -1016,7 +1016,8 @@ static inline void input_put_device(struct input_dev *dev)
1016 1016
1017static inline void input_free_device(struct input_dev *dev) 1017static inline void input_free_device(struct input_dev *dev)
1018{ 1018{
1019 input_put_device(dev); 1019 if (dev)
1020 input_put_device(dev);
1020} 1021}
1021 1022
1022int input_register_device(struct input_dev *); 1023int input_register_device(struct input_dev *);