Re: Resend: [PATCH 1/4] ASoC: dapm: fix error path in snd_soc_dapm_new_pcm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Sep 14, 2017 at 10:02:17PM -0700, anish kumar wrote:
> From: anish kumar <yesanishhere@xxxxxxxxx>
> 
> Before freeing the memory, check if it was allcoated.
> 
> Signed-off-by: anish kumar <yesanishhere@xxxxxxxxx>
> ---
>  sound/soc/soc-dapm.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c
> index dcef67a..f51f613 100644
> --- a/sound/soc/soc-dapm.c
> +++ b/sound/soc/soc-dapm.c
> @@ -3907,9 +3907,9 @@ int snd_soc_dapm_new_pcm(struct snd_soc_card *card,
>         devm_kfree(card->dev, (void *)private_value);
>  outfree_link_name:
>         devm_kfree(card->dev, link_name);
> -outfree_w_param:
>         for (count = 0 ; count < num_params; count++)
>                 devm_kfree(card->dev, (void *)w_param_text[count]);
> +outfree_w_param:
>         devm_kfree(card->dev, w_param_text);
> 
>         return ret;
> --
> 2.5.4 (Apple Git-61)

Your email client appears to be mangling the whitespace in your
patches which makes them exceptionally hard to apply. Have a look
in Documentation/process/email-clients.rst and resend please.

Thanks,
Charles
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux