]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
USB: fix up problems in the vtusb driver
authorStephen Ware <stephen.ware@eqware.net>
Wed, 8 Oct 2008 17:53:56 +0000 (10:53 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 17 Oct 2008 21:41:04 +0000 (14:41 -0700)
commit84dcd594952bf9b95b3901516a61e57abdf54d62
treec287500ddd5d4559a8313485e66cd224333281c1
parent71b7497c078a97e2afb774ad7c1f8ff5bdda8a60
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 <stephen.ware@eqware.net>
From: Dennis O'Brien <dennis.obrien@eqware.net>
Signed-off-by: Dennis O'Brien <dennis.obrien@eqware.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/vstusb.c