]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Use correct major in devcgroup check
authorLorenz Brun <lorenz@brun.one>
Thu, 11 Jun 2020 20:11:21 +0000 (22:11 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 17 Jun 2020 21:41:22 +0000 (17:41 -0400)
commit40a21d85f7b22c50abb5b13764bf62a863d9f89d
tree5bbe97f8c070d137654da3e53f10251e7f94dc1a
parent10f998b31feafbc11d5bdbf17ad4151540c4827c
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: Lorenz Brun <lorenz@brun.one>
Fixes: 53c1a82dce707 ("drm/amdkfd: Check against device cgroup")
Reviewed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdkfd/kfd_priv.h