[alsa-devel] [PATCH] ASoC: core: fix possible ZERO_SIZE_PTR pointer dereferencing error.

Mark Brown broonie at kernel.org
Sun Sep 28 12:50:12 CEST 2014


On Sun, Sep 28, 2014 at 05:29:37PM +0800, Xiubo Li wrote:
> Since we cannot make sure the 'params->num_regs' will always be none
> zero here, and then if it equals to zero, the kmemdup() will return
> ZERO_SIZE_PTR, which equals to ((void *)16).

Applied, thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20140928/07b02a2f/attachment.sig>


More information about the Alsa-devel mailing list