Merge tag 'sound-4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound

Pull sound fixes from Takashi Iwai:
"A few small last-minute fixes that should sneak into 4.15:

- remove a spurious WARN_ON() triggered by syzkaller

- fix for ioctl races in ALSA sequencer

- two trivial HD-audio fixup entries"

* tag 'sound-4.15' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound:
ALSA: seq: Make ioctls race-free
ALSA: pcm: Remove yet superfluous WARN_ON()
ALSA: hda - Apply the existing quirk to iMac 14,1
ALSA: hda - Apply headphone noise quirk for another Dell XPS 13 variant

+6 -1
-1
sound/core/pcm_lib.c
··· 560 560 { 561 561 u_int64_t n = (u_int64_t) a * b; 562 562 if (c == 0) { 563 - snd_BUG_ON(!n); 564 563 *r = 0; 565 564 return UINT_MAX; 566 565 }
+3
sound/core/seq/seq_clientmgr.c
··· 221 221 rwlock_init(&client->ports_lock); 222 222 mutex_init(&client->ports_mutex); 223 223 INIT_LIST_HEAD(&client->ports_list_head); 224 + mutex_init(&client->ioctl_mutex); 224 225 225 226 /* find free slot in the client table */ 226 227 spin_lock_irqsave(&clients_lock, flags); ··· 2131 2130 return -EFAULT; 2132 2131 } 2133 2132 2133 + mutex_lock(&client->ioctl_mutex); 2134 2134 err = handler->func(client, &buf); 2135 + mutex_unlock(&client->ioctl_mutex); 2135 2136 if (err >= 0) { 2136 2137 /* Some commands includes a bug in 'dir' field. */ 2137 2138 if (handler->cmd == SNDRV_SEQ_IOCTL_SET_QUEUE_CLIENT ||
+1
sound/core/seq/seq_clientmgr.h
··· 61 61 struct list_head ports_list_head; 62 62 rwlock_t ports_lock; 63 63 struct mutex ports_mutex; 64 + struct mutex ioctl_mutex; 64 65 int convert32; /* convert 32->64bit */ 65 66 66 67 /* output pool */
+1
sound/pci/hda/patch_cirrus.c
··· 408 408 /*SND_PCI_QUIRK(0x8086, 0x7270, "IMac 27 Inch", CS420X_IMAC27),*/ 409 409 410 410 /* codec SSID */ 411 + SND_PCI_QUIRK(0x106b, 0x0600, "iMac 14,1", CS420X_IMAC27_122), 411 412 SND_PCI_QUIRK(0x106b, 0x1c00, "MacBookPro 8,1", CS420X_MBP81), 412 413 SND_PCI_QUIRK(0x106b, 0x2000, "iMac 12,2", CS420X_IMAC27_122), 413 414 SND_PCI_QUIRK(0x106b, 0x2800, "MacBookPro 10,1", CS420X_MBP101),
+1
sound/pci/hda/patch_realtek.c
··· 6196 6196 SND_PCI_QUIRK(0x1028, 0x075b, "Dell XPS 13 9360", ALC256_FIXUP_DELL_XPS_13_HEADPHONE_NOISE), 6197 6197 SND_PCI_QUIRK(0x1028, 0x075d, "Dell AIO", ALC298_FIXUP_SPK_VOLUME), 6198 6198 SND_PCI_QUIRK(0x1028, 0x0798, "Dell Inspiron 17 7000 Gaming", ALC256_FIXUP_DELL_INSPIRON_7559_SUBWOOFER), 6199 + SND_PCI_QUIRK(0x1028, 0x082a, "Dell XPS 13 9360", ALC256_FIXUP_DELL_XPS_13_HEADPHONE_NOISE), 6199 6200 SND_PCI_QUIRK(0x1028, 0x164a, "Dell", ALC293_FIXUP_DELL1_MIC_NO_PRESENCE), 6200 6201 SND_PCI_QUIRK(0x1028, 0x164b, "Dell", ALC293_FIXUP_DELL1_MIC_NO_PRESENCE), 6201 6202 SND_PCI_QUIRK(0x103c, 0x1586, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC2),