diff options
author | 2011-06-16 08:42:30 +0000 | |
---|---|---|
committer | 2011-06-16 08:42:30 +0000 | |
commit | 14fe19da2a12dc5af5263c765bdeeedee1d28103 (patch) | |
tree | 636c7bbe3d83cfcf80e66f7f0170557c860e47d4 | |
parent | - finally unconfuse emacs by using parentheses for split() (diff) | |
download | wireguard-openbsd-14fe19da2a12dc5af5263c765bdeeedee1d28103.tar.xz wireguard-openbsd-14fe19da2a12dc5af5263c765bdeeedee1d28103.zip |
pass the dma_alloced memory rather than a pointer to its pointer.
-rw-r--r-- | sys/scsi/mpath_emc.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <dlg@openbsd.org> @@ -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; |