diff options
author | Jens Axboe <axboe@suse.de> | 2006-06-14 19:11:57 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-14 19:22:16 +0200 |
commit | 553698f944ed715dfe023b4cef07601f0ce735f0 (patch) | |
tree | 2c9019e43218a3afc92fbb32a44de794123295f4 /arch/i386 | |
parent | [PATCH] Return error in case flock_lock_file failure (diff) | |
download | linux-553698f944ed715dfe023b4cef07601f0ce735f0.tar.xz linux-553698f944ed715dfe023b4cef07601f0ce735f0.zip |
[PATCH] cfq-iosched: fix crash in do_div()
We don't clear the seek stat values in cfq_alloc_io_context(), and if
->seek_mean is unlucky enough to be set to -36 by chance, the first
invocation of cfq_update_io_seektime() will oops with a divide by zero
in do_div().
Just memset the entire cic instead of filling invididual values
independently.
Signed-off-by: Jens Axboe <axboe@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/i386')
0 files changed, 0 insertions, 0 deletions