commit | 2a0ebf80aa95cc758d4725f74a7016e992606a39 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Sun May 19 21:52:20 2013 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Mon May 20 11:35:47 2013 -0700 |
tree | 35fb51826df4e99d781041326e3ce5888afaa76b | |
parent | 7138143972b7c293267c783fc99a194f0ceff7f2 [diff] |
USB: cxacru: potential underflow in cxacru_cm_get_array() The value of "offd" comes off the instance->rcv_buf[] and we used it as the offset into an array. The problem is that we check the upper bound but not for negative values. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>