Skip to content

Commit 27cce7f

Browse files
riastradhriastradh
authored andcommitted
i915: Fix sense of conditional for i915_gem_mmap_ioctl ABI hack.
Original issue and fix described here: https://mail-index.netbsd.org/source-changes/2018/08/27/msg098501.html This was broken in the merge in 2021, and I tried to restore it but got the sense of the conditional wrong: https://mail-index.netbsd.org/source-changes/2021/12/19/msg135215.html
1 parent da30101 commit 27cce7f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

sys/external/bsd/drm2/dist/drm/i915/gem/i915_gem_mman.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $NetBSD: i915_gem_mman.c,v 1.27 2024/06/23 19:37:11 riastradh Exp $ */
1+
/* $NetBSD: i915_gem_mman.c,v 1.28 2025/01/26 20:49:22 riastradh Exp $ */
22

33
/*
44
* SPDX-License-Identifier: MIT
@@ -7,7 +7,7 @@
77
*/
88

99
#include <sys/cdefs.h>
10-
__KERNEL_RCSID(0, "$NetBSD: i915_gem_mman.c,v 1.27 2024/06/23 19:37:11 riastradh Exp $");
10+
__KERNEL_RCSID(0, "$NetBSD: i915_gem_mman.c,v 1.28 2025/01/26 20:49:22 riastradh Exp $");
1111

1212
#include <linux/anon_inodes.h>
1313
#include <linux/mman.h>
@@ -83,7 +83,7 @@ i915_gem_mmap_ioctl(struct drm_device *dev, void *data,
8383

8484
#ifdef __NetBSD__
8585
struct drm_i915_private *i915 = to_i915(obj->base.dev);
86-
if (i915->quirks & QUIRK_NETBSD_VERSION_CALLED)
86+
if ((i915->quirks & QUIRK_NETBSD_VERSION_CALLED) == 0)
8787
args->flags = 0;
8888
#endif
8989

0 commit comments

Comments
 (0)