]> 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)
commit2a3ca4eb4d2908e624b60ef12b82797d2d6b2885
tree1ce199398500fc7ae35fa15f894d2fbd50d24cb2
parent5567748c967f1ae73d8a5e303772a39335f5c73a
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: b3a344e7e273 ('ALSA: fireface: postpone sound card registration') at v4.12
Fixes: 33c3f3f6654d ('ALSA: firewire-motu: postpone sound card registration') at v4.12
Fixes: f09ff9fafffc ('ALSA: firewire-tascam: deleyed registration of sound card') at v4.7
Fixes: 41737ef93e36 ('ALSA: firewire-digi00x: delayed registration of sound card') at v4.7
Fixes: facf01015e43 ('ALSA: oxfw: delayed registration of sound card') at v4.7
Fixes: 4bca1e7c19dd ('ALSA: fireworks: delayed registration of sound card') at v4.7
Fixes: 544fa5727024 ('ALSA: bebob: delayed registration of sound card') at v4.7
Fixes: 9aeab9140e45 ('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