mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-15 00:04:15 +08:00
9c0c54a8da
Currently, if tcs_cmd_gen is called with commit=false, then
tcs_cmd::wait is left uninitialized. Since the tcs_cmd structures passed
to this function aren't zero-initialized, then we're left with random
wait values. This results in waiting for completion for more commands
than is necessary, depending on what's on the stack at the time.
Removing the unnecessary if-condition fixes this, but add an explicit
memset of the tcs_cmd structure as well to ensure predictable behavior
if more tcs_cmd members are added in the future.
Fixes:
|
||
---|---|---|
.. | ||
bcm-voter.c | ||
bcm-voter.h | ||
icc-rpmh.c | ||
icc-rpmh.h | ||
Kconfig | ||
Makefile | ||
msm8916.c | ||
msm8974.c | ||
osm-l3.c | ||
qcs404.c | ||
sc7180.c | ||
sc7180.h | ||
sdm845.c | ||
sdm845.h | ||
smd-rpm.c | ||
smd-rpm.h |