From: Stephen Ware Date: Wed, 8 Oct 2008 17:53:56 +0000 (-0700) Subject: USB: fix up problems in the vtusb driver X-Git-Tag: v2.6.28-rc1~254^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84dcd594952bf9b95b3901516a61e57abdf54d62;p=pandora-kernel.git USB: fix up problems in the vtusb driver Add range check on buffer sizes passed in from user space (max is 8*PAGE_SIZE) which will work for the most common spectrometers even at pages as small as 1K. Add kref to vst device structure to preserve reference to the usb object until we truly are done with it. From: Stephen Ware From: Dennis O'Brien Signed-off-by: Dennis O'Brien Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed