Files
twx-linux/drivers
Colin Ian King 0e045bb60d drm/radeon: fix copy of uninitialized variable back to userspace
commit 8dbc2ccac5 upstream.

Currently the ioctl command RADEON_INFO_SI_BACKEND_ENABLED_MASK can
copy back uninitialised data in value_tmp that pointer *value points
to. This can occur when rdev->family is less than CHIP_BONAIRE and
less than CHIP_TAHITI.  Fix this by adding in a missing -EINVAL
so that no invalid value is copied back to userspace.

Addresses-Coverity: ("Uninitialized scalar variable)
Cc: stable@vger.kernel.org # 3.13+
Fixes: 439a1cfffe ("drm/radeon: expose render backend mask to the userspace")
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-05-22 10:59:25 +02:00
..
…
…
…
…
…
…
…
…
…
2021-04-28 13:16:48 +02:00
…
2021-04-10 13:21:18 +02:00
2021-01-17 14:04:22 +01:00
…
…
…
…
…
2020-12-30 11:26:04 +01:00
…
…
2021-03-04 09:39:44 +01:00
…
2021-05-22 10:59:18 +02:00
…
…
…
…
…
…
…
2021-05-22 10:59:22 +02:00
…
2021-04-07 12:48:48 +02:00
…
2021-04-16 11:49:31 +02:00
…
…