summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorTao Zhou <tao.zhou1@amd.com>2025-10-15 11:19:07 +0300
committerAlex Deucher <alexander.deucher@amd.com>2025-10-21 01:25:49 +0300
commit036f18d0a257204d1df7fbbaf3778061a27e2f2e (patch)
treec1fd6517c78e9aaf36046b17c87ad98425a264c5 /scripts/const_structs.checkpatch
parentd5a62b7aa9323fe10bcbf5e6c22b4522a80c07bb (diff)
downloadlinux-036f18d0a257204d1df7fbbaf3778061a27e2f2e.tar.xz
drm/amdgpu: check save count before RAS bad page saving
It's possible that unit_num is larger than 0 but save_count is zero, since we do get bad page address but the address is invalid. Check unit_num and save_count together. Signed-off-by: Tao Zhou <tao.zhou1@amd.com> Reviewed-by: Candice Li <candice.li@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions