Skip to content

Commit 7145c70

Browse files
committed
Go to splbio() when calling scsipi_free_xs(), just like the SCSI counterpart.
Fixes PR #7853, Paul Dokas <dokas@cs.umn.edu>.
1 parent 1c50748 commit 7145c70

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

sys/dev/scsipi/atapi_base.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: atapi_base.c,v 1.11 1998/11/17 14:45:39 bouyer Exp $ */
1+
/* $NetBSD: atapi_base.c,v 1.12 1999/06/25 18:58:54 thorpej Exp $ */
22

33
/*-
44
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -216,7 +216,7 @@ atapi_scsipi_cmd(sc_link, scsipi_cmd, cmdlen, data_addr, datalen,
216216
int flags;
217217
{
218218
struct scsipi_xfer *xs;
219-
int error;
219+
int error, s;
220220

221221
SC_DEBUG(sc_link, SDEV_DB2, ("atapi_cmd\n"));
222222

@@ -238,7 +238,9 @@ atapi_scsipi_cmd(sc_link, scsipi_cmd, cmdlen, data_addr, datalen,
238238
* we have finished with the xfer stuct, free it and
239239
* check if anyone else needs to be started up.
240240
*/
241+
s = splbio();
241242
scsipi_free_xs(xs, flags);
243+
splx(s);
242244
return (error);
243245
}
244246

0 commit comments

Comments
 (0)