Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/linux Fix thinko: ERESTART, not EWOULD...
details: https://anonhg.NetBSD.org/src/rev/9a5ccb3972e1
branches: trunk
changeset: 1028034:9a5ccb3972e1
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 01:41:54 2021 +0000
description:
Fix thinko: ERESTART, not EWOULDBLOCK.
diffstat:
sys/external/bsd/drm2/linux/linux_wait_bit.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r daa1bee581dd -r 9a5ccb3972e1 sys/external/bsd/drm2/linux/linux_wait_bit.c
--- a/sys/external/bsd/drm2/linux/linux_wait_bit.c Sun Dec 19 01:41:45 2021 +0000
+++ b/sys/external/bsd/drm2/linux/linux_wait_bit.c Sun Dec 19 01:41:54 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_wait_bit.c,v 1.1 2021/12/19 01:22:15 riastradh Exp $ */
+/* $NetBSD: linux_wait_bit.c,v 1.2 2021/12/19 01:41:54 riastradh Exp $ */
/*-
* Copyright (c) 2018 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_wait_bit.c,v 1.1 2021/12/19 01:22:15 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_wait_bit.c,v 1.2 2021/12/19 01:41:54 riastradh Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -146,7 +146,7 @@
}
/* If we were interrupted, return -ERESTARTSYS. */
- if (error == EINTR || error == EWOULDBLOCK) {
+ if (error == EINTR || error == ERESTART) {
ret = -ERESTARTSYS;
goto out;
}
Home |
Main Index |
Thread Index |
Old Index