Skip to content

Commit b0c3cc6

Browse files
andreas-schwabesmil
authored andcommitted
drm/starfive: set FOP_UNSIGNED_OFFSET in starfive_drm_driver_fops
This fixes the error from drm_open: [ +0.000020] [ C1] WARNING: CPU: 1 PID: 1110 at drivers/gpu/drm/drm_file.c Signed-off-by: Andreas Schwab <schwab@suse.de>
1 parent acaba47 commit b0c3cc6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/gpu/drm/starfive/starfive_drm_drv.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ static const struct file_operations starfive_drm_driver_fops = {
5757
.unlocked_ioctl = drm_ioctl,
5858
.compat_ioctl = drm_compat_ioctl,
5959
.release = drm_release,
60+
.fop_flags = FOP_UNSIGNED_OFFSET,
6061
};
6162

6263
static struct drm_driver starfive_drm_driver = {

0 commit comments

Comments
 (0)