From 02dd6681fa3887f1f33a815d414207d13bbbd23b Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Sat, 30 Mar 2024 20:11:07 -0400 Subject: kernel: nvme: Return on controller enable failure Signed-off-by: Ian Moffett --- sys/dev/ic/nvme.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/dev/ic') diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c index 0c3738b..b89545d 100644 --- a/sys/dev/ic/nvme.c +++ b/sys/dev/ic/nvme.c @@ -281,6 +281,7 @@ nvme_enable_controller(struct nvme_state *state) if (nvme_poll_ready(bar, 1) < 0) { KERR("Failed to enable controller\n"); + return -1; } id = dynalloc_memalign(sizeof(struct nvme_id), 0x1000); -- cgit v1.2.3