diff options
author | Ming Lei <ming.lei@redhat.com> | 2019-11-04 16:26:53 +0800 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2019-11-04 07:14:10 -0700 |
commit | d2c9be89f8ebe7ebcc97676ac40f8dec1cf9b43a (patch) | |
tree | d6ebe8b26cbd810c7c41da6a4ed38569f3398c14 /sound | |
parent | 62c441c6ae054a0f9ff2944908ed09603b035fd3 (diff) | |
download | linux-d2c9be89f8ebe7ebcc97676ac40f8dec1cf9b43a.tar.bz2 |
blk-mq: make sure that line break can be printed
8962842ca5ab ("blk-mq: avoid sysfs buffer overflow with too many CPU cores")
avoids sysfs buffer overflow, and reserves one character for line break.
However, the last snprintf() doesn't get correct 'size' parameter passed
in, so fixed it.
Fixes: 8962842ca5ab ("blk-mq: avoid sysfs buffer overflow with too many CPU cores")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions