Skip to content

Commit

Permalink
thermal: core: Move initialization after core initcall
Browse files Browse the repository at this point in the history
The generic netlink is initialized at subsys_initcall, so far after
the thermal init routine and the thermal generic netlink family
initialization.

On ŝome platforms, that leads to a memory corruption.

The fix was sent to netdev@ to move the genetlink framework
initialization at core_initcall.

Move the thermal core initialization to postcore level which is very
close to core level.

Reported-by: Marek Szyprowski <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>
Tested-by: Marek Szyprowski <[email protected]>
Reviewed-by: Amit Kucheria <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
dlezcano committed Jul 21, 2020
1 parent d2a89b5 commit 3f5a2cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/thermal/thermal_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1676,4 +1676,4 @@ static int __init thermal_init(void)
mutex_destroy(&poweroff_lock);
return result;
}
core_initcall(thermal_init);
postcore_initcall(thermal_init);

0 comments on commit 3f5a2cb

Please sign in to comment.