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

Commit fe166c6a authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

greybus: core: clean up ida memory for host controller



We forgot to free any ida internal structures that were used by this
host controller structure when we free the memory for the controller.
So fix that up by doing so in the release function.

Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
Reviewed-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
parent d8742156
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -161,6 +161,7 @@ static void free_hd(struct kref *kref)

	hd = container_of(kref, struct greybus_host_device, kref);

	ida_destroy(&hd->cport_id_map);
	kfree(hd);
	mutex_unlock(&hd_mutex);
}