From 273b612aeef8e85ff4bcb2c41ad14dda3a15f5b2 Mon Sep 17 00:00:00 2001 From: jsg Date: Mon, 17 May 2021 02:18:07 +0000 Subject: [PATCH] drm/radeon: fix copy of uninitialized variable back to userspace From Colin Ian King 8dbc2ccac5a65c5b57e3070e36a3dc97c7970d96 in mainline linux --- sys/dev/pci/drm/radeon/radeon_kms.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/pci/drm/radeon/radeon_kms.c b/sys/dev/pci/drm/radeon/radeon_kms.c index 7d3569b1221..fddf2c39c57 100644 --- a/sys/dev/pci/drm/radeon/radeon_kms.c +++ b/sys/dev/pci/drm/radeon/radeon_kms.c @@ -1236,6 +1236,7 @@ static int radeon_info_ioctl(struct drm_device *dev, void *data, struct drm_file *value = rdev->config.si.backend_enable_mask; } else { DRM_DEBUG_KMS("BACKEND_ENABLED_MASK is si+ only!\n"); + return -EINVAL; } break; case RADEON_INFO_MAX_SCLK: -- 2.20.1