]> git.baikalelectronics.ru Git - kernel.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)
commit1fa9453373cae6be3f208a76965325af509376c9
tree2eb133d1896892d95439812c74f8d0181d7c6def
parent058101d1544478e0f90fc2f7acd782207956c7ac
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