linux-stable/drivers/nvme/target
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
..
admin-cmd.c nvmet: return bool from nvmet_passthru_ctrl and nvmet_is_passthru_req 2021-09-06 09:59:03 +02:00
configfs.c nvmet: fix a width vs precision bug in nvmet_subsys_attr_serial_show() 2021-09-13 17:04:03 +02:00
core.c nvmet: return bool from nvmet_passthru_ctrl and nvmet_is_passthru_req 2021-09-06 09:59:03 +02:00
discovery.c nvmet: allow mn change if subsys not discovered 2021-06-17 15:51:19 +02:00
fabrics-cmd.c nvmet: check that host sqsize does not exceed ctrl MQES 2021-08-16 14:42:25 +02:00
fc.c nvmet-fc: do not check for invalid target port in nvmet_fc_handle_fcp_rqst() 2021-06-17 15:51:19 +02:00
fcloop.c nvme: constify static attribute_group structs 2021-02-02 10:26:10 +01:00
io-cmd-bdev.c nvmet: add ZBD over ZNS backend support 2021-06-17 15:51:21 +02:00
io-cmd-file.c nvmet: use req->cmd directly in file-ns fast path 2021-06-17 15:51:20 +02:00
Kconfig nvme: Have NVME_FABRICS select NVME_CORE instead of transport drivers 2021-08-16 21:03:18 +02:00
loop.c nvme: code command_id with a genctr for use-after-free validation 2021-08-16 14:42:22 +02:00
Makefile nvmet: add ZBD over ZNS backend support 2021-06-17 15:51:21 +02:00
nvmet.h nvmet: return bool from nvmet_passthru_ctrl and nvmet_is_passthru_req 2021-09-06 09:59:03 +02:00
passthru.c nvmet: return bool from nvmet_passthru_ctrl and nvmet_is_passthru_req 2021-09-06 09:59:03 +02:00
rdma.c nvmet: remove zeroout memset call for struct 2021-06-17 15:51:21 +02:00
tcp.c nvme-tcp: can't set sk_user_data without write_lock 2021-07-05 10:14:44 +02:00
trace.c nvmet: add set feature tracing support 2021-08-16 14:42:23 +02:00
trace.h nvmet: use min of device_path and disk len 2021-02-10 16:38:05 +01:00
zns.c nvmet: remove redundant assignments of variable status 2021-08-16 14:42:23 +02:00