Skip to content

Commit fc18282

Browse files
committed
ALSA: hda - Fix unbalance of i915 module refcount
The commit dba9b7b ("ALSA: hda - Fix doubly initialization of i915 component") contained a typo that leads to the unbalance of i915 module reference. The value to be checked is not chip->driver_type but chip->driver_caps. Fixes: dba9b7b ("ALSA: hda - Fix doubly initialization of i915 component") Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=196219 Reported-by: Martin Peres <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
1 parent 818a23e commit fc18282

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/pci/hda/hda_intel.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1385,7 +1385,7 @@ static int azx_free(struct azx *chip)
13851385
if (hda->need_i915_power)
13861386
snd_hdac_display_power(bus, false);
13871387
}
1388-
if (chip->driver_type & AZX_DCAPS_I915_COMPONENT)
1388+
if (chip->driver_caps & AZX_DCAPS_I915_COMPONENT)
13891389
snd_hdac_i915_exit(bus);
13901390
kfree(hda);
13911391

0 commit comments

Comments
 (0)