We were zeroing out the wrong struct.

This commit is contained in:
christos 2005-02-13 09:01:25 +00:00
parent 6e9d895c23
commit 47be3434ec
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: linux_sg.c,v 1.1 2005/02/03 00:09:09 christos Exp $ */
/* $NetBSD: linux_sg.c,v 1.2 2005/02/13 09:01:25 christos Exp $ */
/*
* Copyright (c) 2004 Soren S. Jorvang. All rights reserved.
@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: linux_sg.c,v 1.1 2005/02/03 00:09:09 christos Exp $");
__KERNEL_RCSID(0, "$NetBSD: linux_sg.c,v 1.2 2005/02/13 09:01:25 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -147,7 +147,7 @@ linux_ioctl_sg(struct proc *p, struct linux_sys_ioctl_args *uap,
#ifdef LINUX_SG_DEBUG
dump_scsireq(&req);
#endif
(void)memset(&req, 0, sizeof(req));
(void)memset(&lreq, 0, sizeof(lreq));
if (req.senselen_used) {
lreq.sb_len_wr = req.senselen;