diff options
author | Ming Lei <[email protected]> | 2019-11-04 16:26:53 +0800 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2019-11-04 07:14:10 -0700 |
commit | d2c9be89f8ebe7ebcc97676ac40f8dec1cf9b43a (patch) | |
tree | d6ebe8b26cbd810c7c41da6a4ed38569f3398c14 /lib/netdev-notifier-error-inject.c | |
parent | 62c441c6ae054a0f9ff2944908ed09603b035fd3 (diff) |
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 <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions