diff options
| author | Dan Carpenter <dan.carpenter@linaro.org> | 2023-06-07 02:29:51 +0300 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2023-06-09 19:43:00 +0300 |
| commit | 8be295046748432c53a2dee39c469f63c60b0ec3 (patch) | |
| tree | 5dd23a791e0826006e0b180c4cf77f9454f08b6b /lib/test_fortify/write_overflow-strncpy-src.c | |
| parent | 33e82119cfb2a957f250f92a1e4c4db2b06400db (diff) | |
| download | linux-8be295046748432c53a2dee39c469f63c60b0ec3.tar.xz | |
drm/amdkfd: potential error pointer dereference in ioctl
The "target" either comes from kfd_create_process() which returns error
pointers on error or kfd_lookup_process_by_pid() which returns NULL on
error. So we need to check for both types of errors.
Fixes: 0ab2d7532b05 ("drm/amdkfd: prepare per-process debug enable and disable")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Jonathan Kim <jonathan.kim@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions
