Commit c0ec027
committed
drm/amdgpu: Fix the null pointer when load rlc firmware
jira LE-3201
cve CVE-2024-26649
Rebuild_History Non-Buildable kernel-rt-4.18.0-553.22.1.rt7.363.el8_10
commit-author Ma Jun <Jun.Ma2@amd.com>
commit 849e133
If the RLC firmware is invalid because of wrong header size,
the pointer to the rlc firmware is released in function
amdgpu_ucode_request. There will be a null pointer error
in subsequent use. So skip validation to fix it.
Signed-off-by: Ma Jun <Jun.Ma2@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 849e133)
Signed-off-by: Jonathan Maple <jmaple@ciq.com>1 parent db79970 commit c0ec027
1 file changed
+6
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4003 | 4003 | | |
4004 | 4004 | | |
4005 | 4005 | | |
4006 | | - | |
4007 | | - | |
4008 | | - | |
4009 | | - | |
4010 | | - | |
4011 | | - | |
| 4006 | + | |
4012 | 4007 | | |
4013 | | - | |
4014 | | - | |
4015 | | - | |
| 4008 | + | |
| 4009 | + | |
| 4010 | + | |
| 4011 | + | |
| 4012 | + | |
4016 | 4013 | | |
4017 | 4014 | | |
4018 | 4015 | | |
| |||
0 commit comments