[alsa-devel] [PATCH] ASoC: Intel: fix ifnullfree.cocci warnings
Mark Brown
broonie at kernel.org
Mon Apr 13 12:38:31 CEST 2015
On Mon, Apr 13, 2015 at 09:03:39AM +0800, Jin, Yao wrote:
> The NULL check here is to proivde the protection for current code and
> future potential code. It's possible that in future some code may
> change the pointer ipc->msg and the author may miss the kfree here.
That's not the point - the point is that if it's ever valid to call
kfree() then passing a null pointer in is fine.
-------------- 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/20150413/ff67deae/attachment.sig>
More information about the Alsa-devel
mailing list