set the buffer's "resid" if a raw SCSI command fails, otherwise a
diagnostic check in kern_physio is set up
This commit is contained in:
parent
2f7f09755f
commit
cc7bfbe664
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: scsipi_ioctl.c,v 1.65 2008/04/28 20:23:58 martin Exp $ */
|
||||
/* $NetBSD: scsipi_ioctl.c,v 1.66 2008/07/14 12:36:44 drochner Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1998, 2004 The NetBSD Foundation, Inc.
|
||||
@ -37,7 +37,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: scsipi_ioctl.c,v 1.65 2008/04/28 20:23:58 martin Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: scsipi_ioctl.c,v 1.66 2008/07/14 12:36:44 drochner Exp $");
|
||||
|
||||
#include "opt_compat_freebsd.h"
|
||||
#include "opt_compat_netbsd.h"
|
||||
@ -277,6 +277,8 @@ scsistrategy(struct buf *bp)
|
||||
screq->timeout, bp, flags | XS_CTL_USERCMD);
|
||||
|
||||
done:
|
||||
if (error)
|
||||
bp->b_resid = bp->b_bcount;
|
||||
bp->b_error = error;
|
||||
biodone(bp);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user