Skip to content
Commit 99c7b309 authored by Lorenz Brun's avatar Lorenz Brun Committed by Alex Deucher
Browse files

drm/amdkfd: Use correct major in devcgroup check



The existing code used the major version number of the DRM driver
instead of the device major number of the DRM subsystem for
validating access for a devices cgroup.

This meant that accesses allowed by the devices cgroup weren't
permitted and certain accesses denied by the devices cgroup were
permitted (if they matched the wrong major device number).

Signed-off-by: default avatarLorenz Brun <lorenz@brun.one>
Fixes: 6b855f7b

 ("drm/amdkfd: Check against device cgroup")
Reviewed-off-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: default avatarFelix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
parent 9ec051bf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment