"block/elevator.c" did not exist on "64521d1a3ba7cc7fe4ab5640da83d88144f05340"
-
Tejun Heo authored
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> Signed-off-by:
Jens Axboe <axboe@suse.de>
be561235