Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 9a4e7849 authored by Russell King's avatar Russell King
Browse files

component: fix crash on x86_64 with hda audio drivers



Maarten reports that the addition of releasing match data to the
component helper results in a general protection fault on x86_64.

This is caused by the devm resources being freed in reverse order
to their allocation, which caused a use-after-free of the match
array.

Switch the match array to be a more conventional kmalloc/kfree()
affair, explicitly freeing it along with the parent match data
structure.

Reported-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Fixes: ce657b1c ("component: add support for releasing match data")
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent ce657b1c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment