summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2016-04-14 06:06:47 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2016-04-14 06:06:47 +0000
commit6f9e8c4f783b9a66a85ae28d0700d5d58c3d0891 (patch)
tree274610be343aee1ed4d2606ef596cc490a642c30 /sys
parent19168800e6d0172415d5cad377ec052de7347552 (diff)
dont complete scsi writes twice
it ends up being a use after free, which disagrees with the midlayer.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ic/nvme.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c
index 03ab3caffdc..a66f6341e86 100644
--- a/sys/dev/ic/nvme.c
+++ b/sys/dev/ic/nvme.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nvme.c,v 1.37 2016/04/14 03:04:36 dlg Exp $ */
+/* $OpenBSD: nvme.c,v 1.38 2016/04/14 06:06:46 dlg Exp $ */
/*
* Copyright (c) 2014 David Gwynne <dlg@openbsd.org>
@@ -451,7 +451,7 @@ nvme_scsi_cmd(struct scsi_xfer *xs)
case WRITE_12:
case WRITE_16:
nvme_scsi_io(xs, nvme_scsi_wr_fill);
- break;
+ return;
case INQUIRY:
nvme_scsi_inq(xs);