OpenCloudOS-Kernel/drivers/nvme/target
Daniel Wagner 94f5a06884 nvmet: fix invalid memory reference in nvmet_subsys_attr_qid_max_show
The item passed into nvmet_subsys_attr_qid_max_show is not a member of
struct nvmet_port, it is part of nvmet_subsys.  Hence, don't try to
dereference it as struct nvme_ctrl pointer.

Fixes: 3e980f5995 ("nvmet: Expose max queues to configfs")
Reported-by: Shinichiro Kawasaki <shinichiro.kawasaki@wdc.com>
Link: https://lore.kernel.org/r/20220913064203.133536-1-dwagner@suse.de
Signed-off-by: Daniel Wagner <dwagner@suse.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Acked-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Christoph Hellwig <hch@lst.de>
2022-10-19 12:43:13 +02:00
..
Kconfig nvmet-auth: select the intended CRYPTO_DH_RFC7919_GROUPS 2022-08-02 17:22:51 -06:00
Makefile nvmet: implement basic In-Band Authentication 2022-08-02 17:14:49 -06:00
admin-cmd.c nvme: move from strlcpy with unused retval to strscpy 2022-09-19 11:33:53 +02:00
auth.c nvmet-auth: add missing goto in nvmet_setup_auth() 2022-08-31 07:57:59 +03:00
configfs.c nvmet: fix invalid memory reference in nvmet_subsys_attr_qid_max_show 2022-10-19 12:43:13 +02:00
core.c nvmet: fix workqueue MEM_RECLAIM flushing dependency 2022-10-19 12:43:13 +02:00
discovery.c nvme: move from strlcpy with unused retval to strscpy 2022-09-19 11:33:53 +02:00
fabrics-cmd-auth.c nvmet-auth: don't try to cancel a non-initialized work_struct 2022-09-27 09:22:09 +02:00
fabrics-cmd.c nvmet: add helpers to set the result field for connect commands 2022-09-27 09:22:09 +02:00
fc.c nvmet: use a private workqueue instead of the system workqueue 2022-03-29 09:29:04 +02:00
fcloop.c nvmet: use a private workqueue instead of the system workqueue 2022-03-29 09:29:04 +02:00
io-cmd-bdev.c nvmet: don't look at the request_queue in nvmet_bdev_set_limits 2022-09-27 18:51:50 +02:00
io-cmd-file.c keep iocb_flags() result cached in struct file 2022-06-10 16:10:23 -04:00
loop.c nvme-loop: use the tagset alloc/free helpers 2022-09-27 14:44:17 +02:00
nvmet.h nvmet-auth: don't try to cancel a non-initialized work_struct 2022-09-27 09:22:09 +02:00
passthru.c block: change request end_io handler to pass back a return value 2022-09-30 07:49:09 -06:00
rdma.c RDMA/core: introduce ib_dma_pci_p2p_dma_supported() 2022-07-26 07:28:07 -04:00
tcp.c Merge branch 'for-6.1/block' into for-6.1/passthrough 2022-09-30 07:47:38 -06: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 Merge branch 'for-6.1/block' into for-6.1/passthrough 2022-09-30 07:47:38 -06:00