diff options
author | Tejun Heo <htejun@gmail.com> | 2005-11-10 08:55:01 +0100 |
---|---|---|
committer | Jens Axboe <axboe@nelson.home.kernel.dk> | 2005-11-12 10:56:21 +0100 |
commit | be56123568072d223263a6a70a087d1e7faabb83 (patch) | |
tree | e6044bff3c9dba3392dfe1a4b172d87081d55334 /block/cfq-iosched.c | |
parent | [BLOCK] Implement elv_drain_elevator for improved switch error detection (diff) | |
download | linux-be56123568072d223263a6a70a087d1e7faabb83.tar.xz linux-be56123568072d223263a6a70a087d1e7faabb83.zip |
[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 <htejun@gmail.com>
Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'block/cfq-iosched.c')
0 files changed, 0 insertions, 0 deletions