diff options
author | 2010-07-01 19:31:04 +0000 | |
---|---|---|
committer | 2010-07-01 19:31:04 +0000 | |
commit | d4d948d9c1d3650fed60c3c52873bcb38af30c1e (patch) | |
tree | 2906cec26f8a1a78328a0ffbcf123078d0cd686c /sys/dev/softraid_raid0.c | |
parent | When generating grpsym lists, avoid duplicates without searching the (diff) | |
download | wireguard-openbsd-d4d948d9c1d3650fed60c3c52873bcb38af30c1e.tar.xz wireguard-openbsd-d4d948d9c1d3650fed60c3c52873bcb38af30c1e.zip |
make sure that buf's on the stack set the b_bq to NULL.
one memset -> bzero.
ok marco@, jsing@
Diffstat (limited to 'sys/dev/softraid_raid0.c')
-rw-r--r-- | sys/dev/softraid_raid0.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/softraid_raid0.c b/sys/dev/softraid_raid0.c index c0c7e9d218b..785b12e54ec 100644 --- a/sys/dev/softraid_raid0.c +++ b/sys/dev/softraid_raid0.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid_raid0.c,v 1.20 2010/03/26 11:20:34 jsing Exp $ */ +/* $OpenBSD: softraid_raid0.c,v 1.21 2010/07/01 19:31:04 thib Exp $ */ /* * Copyright (c) 2008 Marco Peereboom <marco@peereboom.us> * @@ -337,6 +337,7 @@ sr_raid0_rw(struct sr_workunit *wu) ccb->ccb_buf.b_data = data; ccb->ccb_buf.b_error = 0; ccb->ccb_buf.b_proc = curproc; + ccb->ccb_buf.b_bq = NULL; ccb->ccb_wu = wu; ccb->ccb_buf.b_flags |= xs->flags & SCSI_DATA_IN ? B_READ : B_WRITE; |