Permalink
Browse files

vioblk: Zero the xfer when requesting devid

  • Loading branch information...
1 parent 74d05a2 commit b1582aa449687ff57fa999f5a432d548627474f5 @xl0 committed Aug 30, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 virtio_blk/vioblk.c
View
@@ -463,6 +463,7 @@ vioblk_devid_init(void *arg, dev_info_t *devinfo, ddi_devid_t *devid)
bd_xfer_t xfer;
deadline = ddi_get_lbolt() + (clock_t)drv_usectohz(3 * 1000000);
+ memset(&xfer, 0, sizeof (bd_xfer_t));
xfer.x_nblks = 1;
if (ddi_dma_alloc_handle(sc->sc_dev, &vioblk_bd_dma_attr,

0 comments on commit b1582aa

Please sign in to comment.