]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: rt298: fix null deref on acpi driver data
authorVinod Koul <vinod.koul@intel.com>
Thu, 12 May 2016 04:08:49 +0000 (09:38 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 12 May 2016 14:25:58 +0000 (15:25 +0100)
commitbb7cb54b388d8d0fbb3af27f14b121ee9c92e867
treed2b8e4c0db9e87a7e4cb3d89a7a6d6b723fc3e04
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca
ASoC: rt298: fix null deref on acpi driver data

ACPI driver data can be NULL so we need to check that before
dereference the driver data.

Signed-off-by: Senthilnathan Veppur <senthilnathanx.veppur@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Acked-by: Bard Liao <bardliao@realtek.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt298.c