linux/drivers/nvme
Dan Carpenter 0bd46e22c5 nvmet: fix a width vs precision bug in nvmet_subsys_attr_serial_show()
This was intended to limit the number of characters printed from
"subsys->serial" to NVMET_SN_MAX_SIZE.  But accidentally the width
specifier was used instead of the precision specifier so it only
affects the alignment and not the number of characters printed.

Fixes: f04064814c ("nvmet: fixup buffer overrun in nvmet_subsys_attr_serial()")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2021-09-13 17:04:03 +02:00
..
host nvme: add error handling support for add_disk() 2021-09-06 10:08:09 +02:00
target nvmet: fix a width vs precision bug in nvmet_subsys_attr_serial_show() 2021-09-13 17:04:03 +02:00
Kconfig
Makefile