Skip to content

Commit a29cbd7

Browse files
vingu-linarorafaeljw
authored andcommitted
tools/lib/thermal: Fix thermal_sampling_exit()
thermal_sampling_init() suscribes to THERMAL_GENL_SAMPLING_GROUP_NAME group so thermal_sampling_exit() should unsubscribe from the same group. Fixes: 47c4b0d ("tools/lib/thermal: Add a thermal library") Signed-off-by: Vincent Guittot <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Daniel Lezcano <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent badf1f9 commit a29cbd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/lib/thermal/sampling.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ int thermal_sampling_fd(struct thermal_handler *th)
5454
thermal_error_t thermal_sampling_exit(struct thermal_handler *th)
5555
{
5656
if (nl_unsubscribe_thermal(th->sk_sampling, th->cb_sampling,
57-
THERMAL_GENL_EVENT_GROUP_NAME))
57+
THERMAL_GENL_SAMPLING_GROUP_NAME))
5858
return THERMAL_ERROR;
5959

6060
nl_thermal_disconnect(th->sk_sampling, th->cb_sampling);

0 commit comments

Comments
 (0)