[alsa-devel] [PATCH 6/6] ASoC: dapm: Fix potential NULL pointer dereference
Mark Brown
broonie at opensource.wolfsonmicro.com
Sun Dec 2 05:14:34 CET 2012
On Wed, Nov 21, 2012 at 02:36:59PM +0530, Sachin Kamat wrote:
> if (!w) {
> dev_err(dapm->dev, "Failed to create %s widget\n",
> dai->driver->playback.stream_name);
> + } else {
> + w->priv = dai;
> }
This isn't a particularly sensible fix, we should be erroring out or
something rather than limping along with the rest of the function.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://mailman.alsa-project.org/pipermail/alsa-devel/attachments/20121202/c9555a23/attachment.sig>
More information about the Alsa-devel
mailing list