aboutsummaryrefslogtreecommitdiffstats
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2021-09-09 09:14:40 +0000
committerChristoph Hellwig <[email protected]>2021-09-13 15:04:03 +0000
commit0bd46e22c5ec3dbfb81b60de475151e3f6b411c2 (patch)
tree01e838e1b3ef5deabfa6bc3ad037cdd6586020d5 /lib/netdev-notifier-error-inject.c
parentblk-mq: avoid to iterate over stale request (diff)
downloadkernel-0bd46e22c5ec3dbfb81b60de475151e3f6b411c2.tar.gz
kernel-0bd46e22c5ec3dbfb81b60de475151e3f6b411c2.zip
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 <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions