drm/radeon: fix copy of uninitialized variable back to userspace
authorjsg <jsg@openbsd.org>
Mon, 17 May 2021 02:18:07 +0000 (02:18 +0000)
committerjsg <jsg@openbsd.org>
Mon, 17 May 2021 02:18:07 +0000 (02:18 +0000)
From Colin Ian King
8dbc2ccac5a65c5b57e3070e36a3dc97c7970d96 in mainline linux

sys/dev/pci/drm/radeon/radeon_kms.c

index 7d3569b..fddf2c3 100644 (file)
@@ -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: