From: Jens Axboe Date: Wed, 14 Jun 2006 17:11:57 +0000 (+0200) Subject: [PATCH] cfq-iosched: fix crash in do_div() X-Git-Tag: v2.6.17~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=553698f944ed715dfe023b4cef07601f0ce735f0;p=pandora-kernel.git [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 Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed