USB: fix DoS in pwc USB video driver
authorOliver Neukum <oneukum@suse.de>
Tue, 21 Aug 2007 05:10:42 +0000 (07:10 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 22 Aug 2007 21:27:58 +0000 (14:27 -0700)
commit85237f202d46d55c1bffe0c5b1aa3ddc0f1dce4d
tree261871504ea83df81488ac36e567e36de08c9b7a
parentc39772d82ad453647ea4bf9d793010d86ef5e597
USB: fix DoS in pwc USB video driver

the pwc driver has a disconnect method that waits for user space to
close the device. This opens up an opportunity for a DoS attack,
blocking the USB subsystem and making khubd's task busy wait in
kernel space. This patch shifts freeing resources to close if an opened
device is disconnected.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
CC: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/media/video/pwc/pwc-if.c
drivers/media/video/pwc/pwc.h