Message ID | 1369047116-9378-69-git-send-email-luis.henriques@canonical.com |
---|---|
State | New |
Headers | show |
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index e6b34c8..f33bb78 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c @@ -609,6 +609,9 @@ int snd_hda_queue_unsol_event(struct hda_bus *bus, u32 res, u32 res_ex) struct hda_bus_unsolicited *unsol; unsigned int wp; + if (!bus || !bus->workq) + return 0; + trace_hda_unsol_event(bus, res, res_ex); unsol = bus->unsol; if (!unsol)