Module Name: src Committed By: riastradh Date: Sun Dec 19 01:41:54 UTC 2021
Modified Files: src/sys/external/bsd/drm2/linux: linux_wait_bit.c Log Message: Fix thinko: ERESTART, not EWOULDBLOCK. To generate a diff of this commit: cvs rdiff -u -r1.1 -r1.2 src/sys/external/bsd/drm2/linux/linux_wait_bit.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/external/bsd/drm2/linux/linux_wait_bit.c diff -u src/sys/external/bsd/drm2/linux/linux_wait_bit.c:1.1 src/sys/external/bsd/drm2/linux/linux_wait_bit.c:1.2 --- src/sys/external/bsd/drm2/linux/linux_wait_bit.c:1.1 Sun Dec 19 01:22:15 2021 +++ src/sys/external/bsd/drm2/linux/linux_wait_bit.c Sun Dec 19 01:41:54 2021 @@ -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 @@ wait_on_bit_timeout(const volatile unsig } /* If we were interrupted, return -ERESTARTSYS. */ - if (error == EINTR || error == EWOULDBLOCK) { + if (error == EINTR || error == ERESTART) { ret = -ERESTARTSYS; goto out; }