diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2021-09-09 12:14:40 +0300 |
---|---|---|
committer | Christoph Hellwig <hch@lst.de> | 2021-09-13 18:04:03 +0300 |
commit | 0bd46e22c5ec3dbfb81b60de475151e3f6b411c2 (patch) | |
tree | 01e838e1b3ef5deabfa6bc3ad037cdd6586020d5 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 67f3b2f822b7e71cfc9b42dbd9f3144fa2933e0b (diff) | |
download | linux-0bd46e22c5ec3dbfb81b60de475151e3f6b411c2.tar.xz |
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: f04064814c2a ("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>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions