Revert "nvmet-tcp: fix kernel crash if commands allocation fails"
This reverts commit e7261a6c8e
.
This commit is contained in:
parent
c187eb4fd5
commit
4063b09e58
1 changed files with 1 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue