Skip to content
Commit 8f658815 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mark Brown
Browse files

ASoC: hdac_hdmi: Potential NULL deref in hdac_hdmi_get_spk_alloc()

We intended || here instead of &&.  The original code potentially leads
to a NULL dereference.

Fixes: 2889099e

 ('ASoC: hdac_hdmi: Register chmap controls and ops')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewd-by: default avatarTakashi Sakamoto <o-takashi@sakamocchi.jp>
Acked-by: default avatarVinod Koul <vinod.koul@intel.com>
Tested-by: default avatarSachin Mokashi <sachinx.mokashi@intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent ea5a137d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment