mirror of
https://github.com/raspberrypi/linux.git
synced 2026-01-02 15:53:42 +00:00
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
This commit is contained in:
@@ -324,6 +324,9 @@ int nvmet_enable_port(struct nvmet_port *port)
|
||||
|
||||
lockdep_assert_held(&nvmet_config_sem);
|
||||
|
||||
if (port->disc_addr.trtype == NVMF_TRTYPE_MAX)
|
||||
return -EINVAL;
|
||||
|
||||
ops = nvmet_transports[port->disc_addr.trtype];
|
||||
if (!ops) {
|
||||
up_write(&nvmet_config_sem);
|
||||
|
||||
Reference in New Issue
Block a user