Revert "nvmet-tcp: fix kernel crash if commands allocation fails"

This reverts commit e7261a6c8e.
This commit is contained in:
Ksawlii 2024-11-24 00:23:36 +01:00
parent c187eb4fd5
commit 4063b09e58

View file

@ -1787,10 +1787,8 @@ static u16 nvmet_tcp_install_queue(struct nvmet_sq *sq)
}
queue->nr_cmds = sq->size * 2;
if (nvmet_tcp_alloc_cmds(queue)) {
queue->nr_cmds = 0;
if (nvmet_tcp_alloc_cmds(queue))
return NVME_SC_INTERNAL;
}
return 0;
}