https://github.com/torvalds/linux
Revision 553698f944ed715dfe023b4cef07601f0ce735f0 authored by Jens Axboe on 14 June 2006, 17:11:57 UTC, committed by Linus Torvalds on 14 June 2006, 17:22:16 UTC
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>
1 parent 9cedc19
History
Tip revision: 553698f944ed715dfe023b4cef07601f0ce735f0 authored by Jens Axboe on 14 June 2006, 17:11:57 UTC
[PATCH] cfq-iosched: fix crash in do_div()
Tip revision: 553698f
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 462 bytes
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 87.4 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 68.9 KB
Makefile -rw-r--r-- 43.7 KB
README -rw-r--r-- 16.2 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top