]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Fix possible races of accesses to connection list array
authorTakashi Iwai <tiwai@suse.de>
Sat, 19 May 2012 15:21:25 +0000 (17:21 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sat, 19 May 2012 15:25:23 +0000 (17:25 +0200)
commit607967ac9bcb2e4eb9b0ae3319efe4f5cc2a2248
tree21a5d5b26f68bf3a4076c76e29d9eb3dc47e1bc5
parentb24a8c6d7967c162ea842eaea698161875aea79e
ALSA: hda - Fix possible races of accesses to connection list array

Like the previous fixes for cache hash accesses, a protection over
accesses to the widget connection list array must be provided.
Together with this action, remove snd_hda_get_conn_list() which can be
always race, and replace it with either snd_hda_get_num_conns() or
snd_hda_get_connections() calls.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_codec.h
sound/pci/hda/patch_realtek.c
sound/pci/hda/patch_via.c