summaryrefslogtreecommitdiff
path: root/rust/zerocopy/git@git.tavy.me:linux-stable.git
diff options
context:
space:
mode:
authorLizhi Hou <lizhi.hou@amd.com>2026-07-07 10:23:23 -0700
committerLizhi Hou <lizhi.hou@amd.com>2026-07-07 20:49:19 -0700
commit44d8fddf1c87d6bb6b65983041a0ce6c2af66bb9 (patch)
treee549de0375fc4c44e2c6b0fb42d863cc800fc773 /rust/zerocopy/git@git.tavy.me:linux-stable.git
parent0f092793a7b527dfb2cde323d4e5630d43447b84 (diff)
accel/amdxdna: Check init_srcu_struct() return value
The return value of init_srcu_struct() is currently ignored. If initialization fails, subsequent use of hwctx_srcu may result in invalid memory accesses. Check the return value of init_srcu_struct() and propagate the error to the caller. Fixes: aac243092b70 ("accel/amdxdna: Add command execution") Reviewed-by: Mario Limonciello (AMD) <superm1@kernel.org> Signed-off-by: Lizhi Hou <lizhi.hou@amd.com> Link: https://patch.msgid.link/20260707172323.539721-1-lizhi.hou@amd.com
Diffstat (limited to 'rust/zerocopy/git@git.tavy.me:linux-stable.git')
0 files changed, 0 insertions, 0 deletions