diff options
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/hda_codec.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 6f9b64700f6e..86674f67abd1 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c | |||
@@ -681,6 +681,9 @@ int snd_hda_queue_unsol_event(struct hda_bus *bus, u32 res, u32 res_ex) | |||
681 | struct hda_bus_unsolicited *unsol; | 681 | struct hda_bus_unsolicited *unsol; |
682 | unsigned int wp; | 682 | unsigned int wp; |
683 | 683 | ||
684 | if (!bus || !bus->workq) | ||
685 | return 0; | ||
686 | |||
684 | trace_hda_unsol_event(bus, res, res_ex); | 687 | trace_hda_unsol_event(bus, res, res_ex); |
685 | unsol = bus->unsol; | 688 | unsol = bus->unsol; |
686 | if (!unsol) | 689 | if (!unsol) |