summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2011-08-03 00:27:21 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2011-08-03 00:27:21 +0000
commit463b9cfa17b8ead66a88d09f608b50ee1a7efe61 (patch)
tree05be55682eaaa140e1ef7ca63ed37291a737bea7 /sys
parent1b55600e5f7bcce676aba246dae1eadb3fed6777 (diff)
Alexander Polakov found a use of an uninitialized pointer in the scsi
unmap handling.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/ata/atascsi.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/ata/atascsi.c b/sys/dev/ata/atascsi.c
index ba958774044..f7197e99200 100644
--- a/sys/dev/ata/atascsi.c
+++ b/sys/dev/ata/atascsi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: atascsi.c,v 1.115 2011/07/17 22:46:48 matthew Exp $ */
+/* $OpenBSD: atascsi.c,v 1.116 2011/08/03 00:27:20 dlg Exp $ */
/*
* Copyright (c) 2007 David Gwynne <dlg@openbsd.org>
@@ -1105,6 +1105,7 @@ atascsi_disk_unmap_task(void *xxs, void *a)
trims = dma_alloc(512, PR_WAITOK | PR_ZERO);
+ ap = atascsi_lookup_port(link);
unmap = (struct scsi_unmap_data *)xs->data;
descs = (struct scsi_unmap_desc *)(unmap + 1);