Skip to content

Commit 2b55639

Browse files
dliviubbrezillon
authored andcommitted
drm/panthor: Add FOP_UNSIGNED_OFFSET to fop_flags
Since commit 641bb43 ("fs: move FMODE_UNSIGNED_OFFSET to fop_flags") the FMODE_UNSIGNED_OFFSET flag has been moved to fop_flags and renamed, but the patch failed to make the changes for the panthor driver. When user space opens the render node the WARN() added by the patch gets triggered. Fixes: 641bb43 ("fs: move FMODE_UNSIGNED_OFFSET to fop_flags") Cc: Christian Brauner <[email protected]> Signed-off-by: Liviu Dudau <[email protected]> Reviewed-by: Boris Brezillon <[email protected]> Reviewed-by: Steven Price <[email protected]> Reviewed-by: Christian Brauner <[email protected]> Tested-by: Heiko Stuebner <[email protected]> Signed-off-by: Boris Brezillon <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 2cd86f0 commit 2b55639

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/panthor/panthor_drv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1383,6 +1383,7 @@ static const struct file_operations panthor_drm_driver_fops = {
13831383
.read = drm_read,
13841384
.llseek = noop_llseek,
13851385
.mmap = panthor_mmap,
1386+
.fop_flags = FOP_UNSIGNED_OFFSET,
13861387
};
13871388

13881389
#ifdef CONFIG_DEBUG_FS

0 commit comments

Comments
 (0)