diff options
author | Nick Piggin <npiggin@suse.de> | 2008-03-10 11:43:59 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-03-10 18:01:20 -0700 |
commit | f7009264c519603b8ec67c881bd368a56703cfc9 (patch) | |
tree | 163c2fa590e3de5c9084f1cba5c1c2815dbd2dde /drivers/video/mbx/mbxfb.c | |
parent | 21bbb39c376ce6beeeb549d155f0d53dc76ed000 (diff) | |
download | linux-3.10-f7009264c519603b8ec67c881bd368a56703cfc9.tar.gz linux-3.10-f7009264c519603b8ec67c881bd368a56703cfc9.tar.bz2 linux-3.10-f7009264c519603b8ec67c881bd368a56703cfc9.zip |
iov_iter_advance() fix
iov_iter_advance() skips over zero-length iovecs, however it does not properly
terminate at the end of the iovec array. Fix this by checking against
i->count before we skip a zero-length iov.
The bug was reproduced with a test program that continually randomly creates
iovs to writev. The fix was also verified with the same program and also it
could verify that the correct data was contained in the file after each
writev.
Signed-off-by: Nick Piggin <npiggin@suse.de>
Tested-by: "Kevin Coffman" <kwc@citi.umich.edu>
Cc: "Alexey Dobriyan" <adobriyan@gmail.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/video/mbx/mbxfb.c')
0 files changed, 0 insertions, 0 deletions