aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorPaolo Valente <[email protected]>2017-05-09 09:37:27 +0000
committerJens Axboe <[email protected]>2017-05-10 13:39:43 +0000
commita66c38a171ed25488debf80247a9e72e1026e82c (patch)
tree52c407a83f2706d34e5ced556903bcb5939265dc /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentnvme: lightnvm: fix memory leak (diff)
downloadkernel-a66c38a171ed25488debf80247a9e72e1026e82c.tar.gz
kernel-a66c38a171ed25488debf80247a9e72e1026e82c.zip
block, bfq: use pointer entity->sched_data only if set
In the function __bfq_deactivate_entity, the pointer entity->sched_data could happen to be used before being properly initialized. This led to a NULL pointer dereference. This commit fixes this bug by just using this pointer only where it is safe to do so. Reported-by: Tom Harrison <[email protected]> Tested-by: Tom Harrison <[email protected]> Signed-off-by: Paolo Valente <[email protected]> Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions