mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-01 00:18:15 +01:00
Set B_BUSY on the private buffer to avoid a panic in biodone when the
I/O completes. Bug apparantly seen when attempting to format SCSI disks. Submitted by: Peter Dufault <dufault@hda.com>
This commit is contained in:
parent
a36ec121e9
commit
98ce50c997
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=12191
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*End copyright
|
||||
*
|
||||
* $Id: scsi_ioctl.c,v 1.15 1995/05/09 02:38:15 dyson Exp $
|
||||
* $Id: scsi_ioctl.c,v 1.16 1995/05/30 08:13:42 rgrimes Exp $
|
||||
*
|
||||
*
|
||||
*/
|
||||
@ -320,7 +320,7 @@ struct proc *p, struct scsi_link *sc_link)
|
||||
/* if no data, no need to translate it.. */
|
||||
bp->b_un.b_addr = 0;
|
||||
bp->b_dev = dev;
|
||||
bp->b_flags = 0;
|
||||
bp->b_flags = B_BUSY;
|
||||
|
||||
scsistrategy(bp);
|
||||
ret = bp->b_error;
|
||||
|
Loading…
Reference in New Issue
Block a user