diff options
| author | Daniel Wagner <[email protected]> | 2022-10-07 07:29:34 +0000 |
|---|---|---|
| committer | Christoph Hellwig <[email protected]> | 2022-10-19 10:43:13 +0000 |
| commit | 94f5a06884074dcd99606d7b329e133ee65ea6ad (patch) | |
| tree | f45a99916e583dd8c721b8084057993686e3455c /drivers/fpga/microchip-spi.c | |
| parent | nvmet: fix workqueue MEM_RECLAIM flushing dependency (diff) | |
| download | kernel-94f5a06884074dcd99606d7b329e133ee65ea6ad.tar.gz kernel-94f5a06884074dcd99606d7b329e133ee65ea6ad.zip | |
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: 3e980f5995e0 ("nvmet: Expose max queues to configfs")
Reported-by: Shinichiro Kawasaki <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Daniel Wagner <[email protected]>
Reviewed-by: Hannes Reinecke <[email protected]>
Acked-by: Sagi Grimberg <[email protected]>
Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'drivers/fpga/microchip-spi.c')
0 files changed, 0 insertions, 0 deletions
