Ajit Kumar Pandey
c61711c1c9
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 <ranjani.sridharan@linux.intel.com>
Signed-off-by: Ajit Kumar Pandey <AjitKumar.Pandey@amd.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20220426183357.102155-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-04-27 14:15:21 +01:00
..
2022-03-21 16:19:21 +01:00
2022-04-25 13:58:17 +01:00
2021-09-16 14:11:37 +01:00
2021-12-21 18:05:43 +00:00
2021-11-03 17:00:52 -07:00
2022-04-25 13:58:16 +01:00
2022-03-02 13:45:24 +00:00
2022-04-06 15:50:05 +01:00
2022-04-20 14:25:11 +01:00
2021-12-20 12:47:16 +00:00
2022-04-08 12:08:37 +01:00
2022-03-16 16:39:25 +00:00
2022-04-21 18:25:15 +01:00
2022-03-08 13:41:15 +00:00
2022-02-28 15:08:14 +01:00
2022-03-21 16:19:21 +01:00
2022-03-23 12:17:52 +00:00
2022-03-16 16:39:17 +00:00
2022-03-07 13:14:56 +00:00
2022-04-27 14:15:21 +01:00
2022-03-16 16:39:28 +00:00
2021-12-20 12:47:23 +00:00
2022-02-03 11:30:57 +00:00
2022-02-15 12:52:44 +00:00
2022-03-16 16:39:21 +00:00
2021-11-25 11:54:30 +00:00
2021-09-29 13:06:38 +01:00
2022-01-24 19:45:38 +00:00
2021-08-16 13:29:36 +01:00
2022-02-01 08:08:08 +01:00
2021-11-29 12:19:41 +00:00
2022-03-14 08:29:11 +00:00
2022-04-05 19:14:20 +01:00
2021-11-29 12:19:40 +00:00
2022-04-05 10:24:44 +01:00
2022-04-25 13:58:18 +01:00
2021-08-16 13:29:34 +01:00
2022-04-26 15:13:36 +01:00
2022-04-04 14:25:39 +01:00
2022-04-04 14:25:36 +01:00
2021-10-29 16:49:45 +01:00