ASoC: qdsp6: Fix an IS_ERR() vs NULL bug
Subsystems (3)
PATCH 1/1 ASoC: qdsp6: Fix an IS_ERR() vs NULL bug
The function gpr_alloc_port return ERR_PTR on errors, it doesn't return null.
--- sound/soc/qcom/qdsp6/q6apm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
sound/soc/qcom/qdsp6/q6apm.c +2 -2
@@ -630,9 +630,9 @@ struct q6apm_graph *q6apm_graph_open(struct device *dev, q6apm_cb cb,init_waitqueue_head (&graph->cmd_wait); graph->port =gpr_alloc_port (apm->gdev, dev, graph_callback, graph); -if (!graph->port) { +if (IS_ERR (graph->port)) {kfree (graph); - ret = -ENOMEM ; + ret =PTR_ERR (graph->port); goto err; }
Signature · 1 line
2.17.1
Mark Brown
maintainerQuoted 4 lines · Miaoqian Lin
The function
gpr_alloc_portreturnERR_PTRon errors, it doesn't return null.
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] ASoC: qdsp6: Fix an IS_ERR() vs NULL bug
commit: 59716aa3f9764144cdd558c64f04cb83001b71ac
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
Thanks,
Mark