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:
000c2a3
)
Input: hp_sdc_rtc - fix test in hp_sdc_rtc_read_rt()
author
Roel Kluin
<roel.kluin@gmail.com>
Sun, 18 Oct 2009 07:17:15 +0000
(
00:17
-0700)
committer
Dmitry Torokhov
<dmitry.torokhov@gmail.com>
Sun, 18 Oct 2009 07:21:34 +0000
(
00:21
-0700)
If left unsigned the hp_sdc_rtc_read_i8042timer() return value will not
be checked correctly.
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/misc/hp_sdc_rtc.c
patch
|
blob
|
history
diff --git
a/drivers/input/misc/hp_sdc_rtc.c
b/drivers/input/misc/hp_sdc_rtc.c
index 216a559f55ea5c706731afc7f7f4abc1219891ed..ea821b54696991929e835ec1e308d7ba2f987fcf 100644
(file)
--- a/
drivers/input/misc/hp_sdc_rtc.c
+++ b/
drivers/input/misc/hp_sdc_rtc.c
@@
-209,7
+209,7
@@
static inline int hp_sdc_rtc_read_rt(struct timeval *res) {
/* Read the i8042 fast handshake timer */
static inline int hp_sdc_rtc_read_fhs(struct timeval *res) {
-
u
int64_t raw;
+ int64_t raw;
unsigned int tenms;
raw = hp_sdc_rtc_read_i8042timer(HP_SDC_CMD_LOAD_FHS, 2);