Skip to content

Commit 94602d8

Browse files
rfvirgilbroonie
authored andcommitted
ASoC: wm_adsp: Don't use no_free_ptr() when passing to PTR_ERR()
It's no longer necessary to no_free_ptr() an auto-freed pointer before passing it to PTR_ERR(). This was fixed by commit cd7eb8f ("mm/slab: make __free(kfree) accept error pointers"). Removing the no_free_ptr() avoids the spurious warning "inconsistent IS_ERR and PTR_ERR". Fixes: b5d057a ("ASoC: wm_adsp: Use vmemdup_user() instead of open-coding") Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202504270751.nR3Ngfrq-lkp@intel.com/ Link: https://patch.msgid.link/20250428090803.97909-1-rf@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 84dea31 commit 94602d8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

sound/soc/codecs/wm_adsp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@ static int wm_coeff_tlv_put(struct snd_kcontrol *kctl,
419419
void *scratch __free(kvfree) = vmemdup_user(bytes, size);
420420

421421
if (IS_ERR(scratch))
422-
return PTR_ERR(no_free_ptr(scratch));
422+
return PTR_ERR(scratch);
423423

424424
return cs_dsp_coeff_lock_and_write_ctrl(cs_ctl, 0, scratch, size);
425425
}

0 commit comments

Comments
 (0)