diff options
author | Greg Kroah-Hartman <gregkh@google.com> | 2015-07-27 14:23:44 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2015-07-28 14:47:03 -0700 |
commit | fe166c6a2b9225d71b1b4f1035603e189f6c3640 (patch) | |
tree | e0ceb3b0568fde17777f713be9bfb5c36bf36c3e /drivers/staging/greybus/core.c | |
parent | d8742156c1c0125b709c262c5a564bb828e126dc (diff) |
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: Greg Kroah-Hartman <gregkh@google.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/staging/greybus/core.c')
-rw-r--r-- | drivers/staging/greybus/core.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/greybus/core.c b/drivers/staging/greybus/core.c index 49a28ba532dc..7d5cd99157f5 100644 --- a/drivers/staging/greybus/core.c +++ b/drivers/staging/greybus/core.c @@ -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); } |