]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
USB: cxacru: fix an bounds check warning
authorDan Carpenter <dan.carpenter@oracle.com>
Sat, 30 Jan 2016 14:34:55 +0000 (17:34 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 21:52:10 +0000 (13:52 -0800)
commit46e3cafb01feb107a681e89fd9b4f1cd938a601f
tree50a6daf1028c3d3598e50798a3d329f8fe6b3fe5
parent1b83349fddd1efa814a83735e44e684a139d2425
USB: cxacru: fix an bounds check warning

This is a privileged operation so it doesn't matter much.  We use "tmp"
as an offset into an array.  If it were invalid we could read out of
bounds and trigger an oops if the memory is not mapped.  Plus it makes
static checkers complain.

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