]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: firewire: fix NULL pointer dereference when releasing uninitialized data of...
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Sun, 20 Aug 2017 06:54:26 +0000 (15:54 +0900)
committerTakashi Iwai <tiwai@suse.de>
Sun, 20 Aug 2017 07:40:32 +0000 (09:40 +0200)
commitd2e867d966852fb5a723da013824c0e69fd1fa26
tree1ce199398500fc7ae35fa15f894d2fbd50d24cb2
parent3ab0a569257cea7b16fcc051ea073f0dcb9751e3
ALSA: firewire: fix NULL pointer dereference when releasing uninitialized data of iso-resource

When calling 'iso_resource_free()' for uninitialized data, this function
causes NULL pointer dereference due to its 'unit' member. This occurs when
unplugging audio and music units on IEEE 1394 bus at failure of card
registration.

This commit fixes the bug. The bug exists since kernel v4.5.

Fixes: 9045223ed601 ('ALSA: fireface: postpone sound card registration') at v4.12
Fixes: e8ea71a4fde6 ('ALSA: firewire-motu: postpone sound card registration') at v4.12
Fixes: 9390dc3deaf5 ('ALSA: firewire-tascam: deleyed registration of sound card') at v4.7
Fixes: a438adbffdf2 ('ALSA: firewire-digi00x: delayed registration of sound card') at v4.7
Fixes: 3d3b5d978e0a ('ALSA: oxfw: delayed registration of sound card') at v4.7
Fixes: 1a62e4b7f9aa ('ALSA: fireworks: delayed registration of sound card') at v4.7
Fixes: c7f1f2e9f933 ('ALSA: bebob: delayed registration of sound card') at v4.7
Fixes: 1a4489b81375 ('ALSA: dice: postpone card registration') at v4.5
Cc: <stable@vger.kernel.org> # v4.5+
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/iso-resources.c