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

Jens Axboe
2005-11-10T07:54:09Z

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@gmail.com>
> Cc: Bernd Petrovitsch <bernd@firmix.at>

Thanks applied.

--
Jens Axboe