From: Tejun Heo Date: Thu, 10 Nov 2005 07:55:01 +0000 (+0100) Subject: [BLOCK] fix string handling in elv_iosched_store X-Git-Tag: v2.6.15-rc2~226 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be56123568072d223263a6a70a087d1e7faabb83;p=pandora-kernel.git [BLOCK] fix string handling in elv_iosched_store elv_iosched_store doesn't terminate string passed from userspace if it's too long. Also, if the written length is zero (probably not possible), it accesses elevator_name[-1]. This patch fixes both bugs. Signed-off-by: Tejun Heo Signed-off-by: Jens Axboe --- Reading git-diff-tree failed