USB: usblcd doesn't limit memory consumption during write
authorOliver Neukum <oneukum@suse.de>
Mon, 11 Jun 2007 13:36:02 +0000 (15:36 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 26 Jun 2007 06:38:06 +0000 (23:38 -0700)
commit5afeb104e7901168b21aad0437fb51dc620dfdd3
tree4e4176d96fb6df1ad12078967bceb058d544ecbe
parentfc0f8fc9be654bbff08ede04a49bd8f9805b9e13
USB: usblcd doesn't limit memory consumption during write

usblcd currently has no way to limit memory consumption by fast writers.
This is a security problem, as it allows users with write access to this
device to drive the system into oom despite resource limits.
Here's the fix taken from the modern skeleton driver.

Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/misc/usblcd.c