[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <f6a18c7c-8a7a-43c9-80af-b3ecc7f5d6bc@sirena.org.uk>
Date: Wed, 26 Jun 2024 11:41:16 +0100
From: Mark Brown <broonie@...nel.org>
To: Zhu Jun <zhujun2@...s.chinamobile.com>
Cc: ivan.orlov0322@...il.com, perex@...ex.cz, tiwai@...e.com,
shuah@...nel.org, linux-sound@...r.kernel.org,
linux-kselftest@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] selftests/alsa:Replace malloc with calloc
On Wed, Jun 26, 2024 at 02:54:09AM -0700, Zhu Jun wrote:
> Using calloc to handling memory allocation, calloc
> can initialize the allocated memory
> SKIP(return, "Can't read patterns. Probably, module isn't loaded");
>
> card_name = malloc(127);
> + memset(card_name, 0, 127);
> ASSERT_NE(card_name, NULL);
> self->params.buffer_size = 16384;
> self->params.period_size = 4096;
The change does not match the changelog.
Download attachment "signature.asc" of type "application/pgp-signature" (489 bytes)
Powered by blists - more mailing lists