Skip to content

Commit 6c9c56d

Browse files
committed
Merge tag 'nvme-6.15-2025-04-24' of git://git.infradead.org/nvme into block-6.15
Pull NVMe fix from Christoph: "nvme fixes for Linux 6.15 - fix an out-of-bounds access in nvmet_enable_port (Richard Weinberger)" * tag 'nvme-6.15-2025-04-24' of git://git.infradead.org/nvme: nvmet: fix out-of-bounds access in nvmet_enable_port
2 parents 8f50363 + 3d7aa0c commit 6c9c56d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/nvme/target/core.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,9 @@ int nvmet_enable_port(struct nvmet_port *port)
324324

325325
lockdep_assert_held(&nvmet_config_sem);
326326

327+
if (port->disc_addr.trtype == NVMF_TRTYPE_MAX)
328+
return -EINVAL;
329+
327330
ops = nvmet_transports[port->disc_addr.trtype];
328331
if (!ops) {
329332
up_write(&nvmet_config_sem);

0 commit comments

Comments
 (0)