diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2005-10-29 12:56:13 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-10-29 19:35:08 +0200 |
commit | 018a2cdf1e633497bb4f01eb86a7cbffa611776d (patch) | |
tree | 515fd2723973f28a738c597d8630526b88650d40 /net/bluetooth/hidp | |
parent | [PATCH] amikbd fix (diff) | |
download | linux-018a2cdf1e633497bb4f01eb86a7cbffa611776d.tar.xz linux-018a2cdf1e633497bb4f01eb86a7cbffa611776d.zip |
[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>
Diffstat (limited to 'net/bluetooth/hidp')
0 files changed, 0 insertions, 0 deletions