summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/nvme.c1
1 files changed, 1 insertions, 0 deletions
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);