From 9b94469b7f0dee8ddd064525bc7579fb889f1580 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Thu, 16 Jun 2011 08:42:31 +0000 Subject: pass the dma_alloced memory rather than a pointer to its pointer. --- sys/scsi/mpath_emc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/scsi') diff --git a/sys/scsi/mpath_emc.c b/sys/scsi/mpath_emc.c index f06ea575a3f..8384ca62841 100644 --- a/sys/scsi/mpath_emc.c +++ b/sys/scsi/mpath_emc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpath_emc.c,v 1.5 2011/06/15 01:10:50 dlg Exp $ */ +/* $OpenBSD: mpath_emc.c,v 1.6 2011/06/16 08:42:30 dlg Exp $ */ /* * Copyright (c) 2011 David Gwynne @@ -288,7 +288,7 @@ emc_sp_info(struct emc_softc *sc) pg = dma_alloc(sizeof(*pg), PR_WAITOK); - error = scsi_inquire_vpd(sc->sc_path.p_link, &pg, sizeof(pg), + error = scsi_inquire_vpd(sc->sc_path.p_link, pg, sizeof(*pg), EMC_VPD_SP_INFO, scsi_autoconf); if (error != 0) goto done; -- cgit v1.2.3