]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: cyberjack: fix buggy integer overflow test
authorDan Carpenter <dan.carpenter@oracle.com>
Sun, 6 Oct 2013 00:32:53 +0000 (03:32 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 7 Oct 2013 07:07:18 +0000 (00:07 -0700)
commit5287bf726ff8a7353e883b73576710fd53dc88bb
tree2eb133d1896892d95439812c74f8d0181d7c6def
parent5a3e2055c56c7c32b51d47bde78c7f7508ffea98
USB: cyberjack: fix buggy integer overflow test

"old_rdtodo" and "size" are short type.  They are type promoted to int
and the condition is never true.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/cyberjack.c