aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorAjit Kumar Pandey <[email protected]>2022-04-26 18:33:57 +0000
committerMark Brown <[email protected]>2022-04-27 13:15:21 +0000
commitc61711c1c95791850be48dd65a1d72eb34ba719f (patch)
treea9da2f439b906e63622ba504059eea688adb4ba2 /lib/debugobjects.c
parentASoC: ops: Validate input values in snd_soc_put_volsw_range() (diff)
downloadkernel-c61711c1c95791850be48dd65a1d72eb34ba719f.tar.gz
kernel-c61711c1c95791850be48dd65a1d72eb34ba719f.zip
ASoC: SOF: Fix NULL pointer exception in sof_pci_probe callback
We are accessing "desc->ops" in sof_pci_probe without checking "desc" pointer. This results in NULL pointer exception if pci_id->driver_data i.e desc pointer isn't defined in sof device probe: BUG: kernel NULL pointer dereference, address: 0000000000000060 PGD 0 P4D 0 Oops: 0000 [#1] PREEMPT SMP NOPTI RIP: 0010:sof_pci_probe+0x1e/0x17f [snd_sof_pci] Code: Unable to access opcode bytes at RIP 0xffffffffc043dff4. RSP: 0018:ffffac4b03b9b8d8 EFLAGS: 00010246 Add NULL pointer check for sof_dev_desc pointer to avoid such exception. Reviewed-by: Ranjani Sridharan <[email protected]> Signed-off-by: Ajit Kumar Pandey <[email protected]> Signed-off-by: Pierre-Louis Bossart <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions