Commit d9929097 authored by Takashi Sakamoto's avatar Takashi Sakamoto Committed by Greg Kroah-Hartman

ALSA: fireworks: fix memory leak of response buffer at error path

commit c3b55e2ec9c76e7a0de2a0b1dc851fdc9440385b upstream.

After allocating memory object for response buffer, ALSA fireworks
driver has leak of the memory object at error path.

This commit releases the object at the error path.

Fixes: 7d3c1d59('ALSA: fireworks: delayed registration of sound card')
Cc: <> # v4.7+
Signed-off-by: 's avatarTakashi Sakamoto <>
Signed-off-by: 's avatarTakashi Iwai <>
Signed-off-by: 's avatarGreg Kroah-Hartman <>
parent 40e2596f
......@@ -301,6 +301,8 @@ error:
efw->resp_buf = NULL;
"Sound card registration failed: %d\n", err);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment