| commit | fcaa80f4f20519ee7d432d727b375e7a181e6a50 | [log] [tgz] |
|---|---|---|
| author | Dan Carpenter <dan.carpenter@oracle.com> | Sun May 19 21:52:20 2013 +0300 |
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Jun 07 12:49:11 2013 -0700 |
| tree | 097548e8714ab85fb9d55b4364194a15f8c127ec | |
| parent | dc8e739467bb6552d5e8325d5f32e356f48da3b6 [diff] |
USB: cxacru: potential underflow in cxacru_cm_get_array() commit 2a0ebf80aa95cc758d4725f74a7016e992606a39 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>