Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic need now channel lock around siisata_device_reset...
details: https://anonhg.NetBSD.org/src/rev/95077a66d1a6
branches: trunk
changeset: 445359:95077a66d1a6
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Wed Oct 24 20:07:37 2018 +0000
description:
need now channel lock around siisata_device_reset() executed for fatal error
diffstat:
sys/dev/ic/siisata.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 44e6b8c312da -r 95077a66d1a6 sys/dev/ic/siisata.c
--- a/sys/dev/ic/siisata.c Wed Oct 24 20:03:07 2018 +0000
+++ b/sys/dev/ic/siisata.c Wed Oct 24 20:07:37 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: siisata.c,v 1.37 2018/10/24 19:38:00 jdolecek Exp $ */
+/* $NetBSD: siisata.c,v 1.38 2018/10/24 20:07:37 jdolecek Exp $ */
/* from ahcisata_core.c */
@@ -79,7 +79,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: siisata.c,v 1.37 2018/10/24 19:38:00 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: siisata.c,v 1.38 2018/10/24 20:07:37 jdolecek Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -578,7 +578,9 @@
PRREAD(sc, PRX(chp->ch_channel, PRO_PCR)));
/* okay, we have a "Fatal Error" */
+ ata_channel_lock(chp);
siisata_device_reset(chp);
+ ata_channel_unlock(chp);
}
}
Home |
Main Index |
Thread Index |
Old Index