Skip to content

Commit e6bb711

Browse files
committed
Merge tag 'drm-misc-fixes-2019-09-12' of git://anongit.freedesktop.org/drm/drm-misc into drm-fixes
drm-misc-fixes for v5.3 final: - Constify modes whitelist harder. - Fix lima driver gem_wait ioctl. Signed-off-by: Dave Airlie <[email protected]> From: Maarten Lankhorst <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
2 parents 911ad0b + 21670bd commit e6bb711

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/gpu/drm/drm_modes.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1677,7 +1677,7 @@ static int drm_mode_parse_cmdline_options(char *str, size_t len,
16771677
return 0;
16781678
}
16791679

1680-
static const char *drm_named_modes_whitelist[] = {
1680+
static const char * const drm_named_modes_whitelist[] = {
16811681
"NTSC",
16821682
"PAL",
16831683
};

drivers/gpu/drm/lima/lima_gem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ int lima_gem_wait(struct drm_file *file, u32 handle, u32 op, s64 timeout_ns)
342342
timeout = drm_timeout_abs_to_jiffies(timeout_ns);
343343

344344
ret = drm_gem_reservation_object_wait(file, handle, write, timeout);
345-
if (ret == 0)
345+
if (ret == -ETIME)
346346
ret = timeout ? -ETIMEDOUT : -EBUSY;
347347

348348
return ret;

0 commit comments

Comments
 (0)