Skip to content
Commit 7e021047 authored by Grant Ramsay's avatar Grant Ramsay Committed by Josh Lilly
Browse files

drivers: can: mcan: tidy TX complete semaphore usage



"callback != NULL" is used to determine if the callback is in use.
The TX complete semaphone should only be given back after setting the
callback to NULL.

This would likely only be a race condition if the ISR is processed on a
different core to the TX call.

Signed-off-by: default avatarGrant Ramsay <gramsay@enphaseenergy.com>
(cherry picked from commit 12d6e268)
parent 535fba08
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment