aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
diff options
context:
space:
mode:
authorFilipe Manana <[email protected]>2024-06-23 11:50:26 +0000
committerDavid Sterba <[email protected]>2024-07-02 17:14:57 +0000
commit9da45c88e124f13a3c4d480b89b298e007fbb9e4 (patch)
tree33f7428729cd1f1bcc89f4d7583a0f9dfa9eda54 /drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c
parentbtrfs: always do the basic checks for btrfs_qgroup_inherit structure (diff)
downloadkernel-9da45c88e124f13a3c4d480b89b298e007fbb9e4.tar.gz
kernel-9da45c88e124f13a3c4d480b89b298e007fbb9e4.zip
btrfs: fix uninitialized return value in the ref-verify tool
In the ref-verify tool, when processing the inline references of an extent item, we may end up returning with uninitialized return value, because: 1) The 'ret' variable is not initialized if there are no inline extent references ('ptr' == 'end' before the while loop starts); 2) If we find an extent owner inline reference we don't initialize 'ret'. So fix these cases by initializing 'ret' to 0 when declaring the variable and set it to -EINVAL if we find an extent owner inline references and simple quotas are not enabled (as well as print an error message). Reported-by: Mirsad Todorovac <[email protected]> Link: https://lore.kernel.org/linux-btrfs/[email protected]/ Signed-off-by: Filipe Manana <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c')
0 files changed, 0 insertions, 0 deletions