]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdkfd: Fix handling of return code of dma_buf_get
authorFelix Kuehling <Felix.Kuehling@amd.com>
Fri, 14 Dec 2018 16:57:02 +0000 (11:57 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 18 Dec 2018 22:39:11 +0000 (17:39 -0500)
commitf25f54cc51dbabd292639513ad9428316535306d
tree0b9b9841767caba83179eb5722681f1f1d7d4d79
parentf62874537728fc35f71ffb4af632819b4858bf72
drm/amdkfd: Fix handling of return code of dma_buf_get

On errors, dma_buf_get returns a negative error code, rather than NULL.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_chardev.c