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

Commit 3514d2d0 authored by Dustin Brown's avatar Dustin Brown Committed by Gerrit - the friendly Code Review server
Browse files

qcacmn: Free hotplug handler in qdf_cpuhp_unregister

A hotplug handler is allocated by calling qdf_cpuhp_register. However,
qdf_cpuhp_unregister does not free the previously allocated memory. Free
the hotplug handler in qdf_cpuhp_unregister.

Change-Id: I1663f5ea29a8630b42be33abd824135b0fbe4845
CRs-Fixed: 2141119
parent 82c96478
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -152,6 +152,7 @@ void qdf_cpuhp_unregister(struct qdf_cpuhp_handler **out_handler)
	qdf_list_remove_node(&qdf_cpuhp_handlers, &handler->node);
	qdf_mutex_release(&qdf_cpuhp_lock);

	qdf_mem_free(handler);
	*out_handler = NULL;
}