]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
Staging: rspiusb: Fix buffer overflow
authorRoel Kluin <roel.kluin@gmail.com>
Fri, 7 Aug 2009 19:00:10 +0000 (21:00 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Aug 2009 23:12:03 +0000 (16:12 -0700)
commit749d00dbf154fc2f9ac59df669205039de0d5b45
tree0099ed2a213c0b221e89a22a5b7a9611e11ddf0b
parent5fb4d2525b6dcffbb8bc26a7dfc7ed17ad323a06
Staging: rspiusb: Fix buffer overflow

usb_buffer_map_sg() may return -1. This will result in a read from
pdx->PixelUrb[frameInfo][-1]

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/rspiusb/rspiusb.c