USB: fix DoS in pwc USB video driver
commit852ffe0acf89f959e8d35080bbd2bdc2d8f2e9e5
authorOliver Neukum <oneukum@suse.de>
Wed, 22 Aug 2007 22:15:43 +0000 (22 15:15 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 31 Aug 2007 06:01:52 +0000 (30 23:01 -0700)
treeacaea277a4ba9e595bbda54f47d245f01822b642
parent8e62c5a411874691e8938fa439978de9fa7c58c8
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/media/video/pwc/pwc-if.c
drivers/media/video/pwc/pwc.h