[PATCH] ASoC: qcom: q6dsp: Fix an off-by-one in q6adm_alloc_copp()
Dan Carpenter
dan.carpenter at oracle.com
Thu Jul 21 12:32:03 CEST 2022
On Thu, Jul 21, 2022 at 01:00:42PM +0300, Dan Carpenter wrote:
> sound/soc/qcom/qdsp6/q6adm.c:220 q6adm_alloc_copp() warn: impossible find_next_bit condition
>
> I'll probably try to make this check more generic
Attached is my first draft generic version. There are other ways I
could have written this, but I'll test my first draft and see what that
looks like.
sound/soc/qcom/qdsp6/q6adm.c:220 q6adm_alloc_copp() warn: potential off by one check 'find_first_zero_bit()'
regards,
dan carpenter
-------------- next part --------------
A non-text attachment was scrubbed...
Name: check_off_by_one_capped_return.c
Type: text/x-csrc
Size: 1584 bytes
Desc: not available
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20220721/d9c92c37/attachment.bin>
More information about the Alsa-devel
mailing list