Re: [PATCH] blk: fix string handling in elv_iosched_store

From: Jens Axboe
Date: Thu Nov 10 2005 - 02:54:09 EST


On Thu, Nov 10 2005, Tejun Heo wrote:
> 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 <htejun@xxxxxxxxx>
> Cc: Bernd Petrovitsch <bernd@xxxxxxxxx>

Thanks applied.

--
Jens Axboe

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/