diff options
| author | Ming Lei <[email protected]> | 2020-10-09 12:03:56 +0800 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2020-10-09 12:32:06 -0600 |
| commit | 7ea6bf2e6c409e245a31b9ac6a4ba24949ad442f (patch) | |
| tree | 709047965688b8a10260522de051e5fe23afbbb9 /drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c | |
| parent | f4ac712e4fe009635344b9af5d890fe25fcc8c0d (diff) | |
percpu_ref: don't refer to ref->data if it isn't allocated
We can't check ref->data->confirm_switch directly in __percpu_ref_exit(), since
ref->data may not be allocated in one not-initialized refcount.
Fixes: 2b0d3d3e4fcf ("percpu_ref: reduce memory footprint of percpu_ref in fast path")
Reported-by: [email protected]
Signed-off-by: Ming Lei <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c')
0 files changed, 0 insertions, 0 deletions