linux-stable-rt/drivers/usb/misc
Al Viro 018a2cdf1e [PATCH] idmouse cleanup and overflow fix
switched to simple_read_from_buffer(), killed broken use of min().
Incidentally, that use of min() had been fixed once, only to be
reintroduced in commit 4244f72436ab77c3c29a6447af81734ab3925d85:

    [PATCH] USB: upgrade of the idmouse driver

[snip]
-       if (count > IMGSIZE - *ppos)
-               count = IMGSIZE - *ppos;
+       count = min ((loff_t)count, IMGSIZE - (*ppos));

Note the lovely use of cast to shut the warning about misuse of min()
up...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-10-29 10:35:08 -07:00
..
sisusbvga
Kconfig
Makefile
auerswald.c
cytherm.c
emi26.c
emi26_fw.h
emi62.c
emi62_fw_m.h
emi62_fw_s.h
idmouse.c
ldusb.c
legousbtower.c
phidgetkit.c
phidgetservo.c
rio500.c
rio500_usb.h
usblcd.c
usbled.c
usbtest.c
uss720.c