Thread (2 messages) 2 messages, 2 authors, 2011-12-15

Re: [PATCH] input: signedness bug in cma3000_thread_irq()

flat view

From: <hidden>
Date: 2011-12-15 02:27:19
Also in: lkml

On Mon, 12 Dec 2011 01:49:26 EST, Xi Wang said:
quoted hunk
The error check (intr_status < 0) didn't work because intr_status is
a u8.  Change its type to signed int.

Signed-off-by: Xi Wang <xi.wang@gmail.com>
---
 drivers/input/misc/cma3000_d0x.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/input/misc/cma3000_d0x.c b/drivers/input/misc/cma3000_d0x.c
That will fix the signed/unsigned issue.  However, was there a reason
the field was an 8-bit-wide to begin with?

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help