aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorPierre-Louis Bossart <[email protected]>2020-07-07 15:37:45 -0500
committerMark Brown <[email protected]>2020-07-08 14:25:18 +0100
commit6f0307df83f2aa6bdf656c2219c89ce96502d20e (patch)
tree2a8f62834c4c6df535a598470423b4b44c0ca389 /lib/netdev-notifier-error-inject.c
parent503ed52225ed3d369c8e0dedf13556a7bc1e5c2b (diff)
ASoC: topology: fix kernel oops on route addition error
When errors happens while loading graph components, the kernel oopses while trying to remove all topology components. This can be root-caused to a list pointing to memory that was already freed on error. remove_route() is already called on errors and will perform the required cleanups so there's no need to free the route memory in soc_tplg_dapm_graph_elems_load() if the route was added to the list. We do however want to free the routes allocated but not added to the list. Fixes: 7df04ea7a31ea ('ASoC: topology: modify dapm route loading routine and add dapm route unloading') Signed-off-by: Pierre-Louis Bossart <[email protected]> Reviewed-by: Ranjani Sridharan <[email protected]> Reviewed-by: Kai Vehmanen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions