From: jsg Date: Mon, 17 May 2021 02:18:07 +0000 (+0000) Subject: drm/radeon: fix copy of uninitialized variable back to userspace X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=273b612aeef8e85ff4bcb2c41ad14dda3a15f5b2;p=openbsd drm/radeon: fix copy of uninitialized variable back to userspace From Colin Ian King 8dbc2ccac5a65c5b57e3070e36a3dc97c7970d96 in mainline linux --- 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: