soc: ti: k3-navss-ringacc: NULL check before dereference
authorAndrew Goodbody <andrew.goodbody@linaro.org>
Tue, 12 Aug 2025 10:13:49 +0000 (11:13 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 19 Aug 2025 17:26:07 +0000 (11:26 -0600)
commitb90927bd0d81096239ff4a48a71c3d9e87ef7209
tree431a2755e1467029b4f110b94a6478a6cdf8615f
parentcf11b98f139c996bf60c0abe20d343060c4fef26
soc: ti: k3-navss-ringacc: NULL check before dereference

Move the first dereference of ring to after the NULL check has occurred.
This will prevent any possible dereference of NULL.

This issue was found by Smatch.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
drivers/soc/ti/k3-navss-ringacc.c