]> asedeno.scripts.mit.edu Git - linux.git/commit
greybus: svc: fix ida memory leak
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 15 Sep 2015 07:18:08 +0000 (09:18 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Tue, 15 Sep 2015 13:12:45 +0000 (06:12 -0700)
commitc09db1820f7ae71d0b1aad7cd1efafab0a880917
tree2f68ce8543f4e6df22c81d921a16cf3cf9ba4dcf
parente5acf736caac014de39f618f7725164b75176fea
greybus: svc: fix ida memory leak

The device-id map was never deallocated on SVC-connection tear down.

Also make the map per-SVC-connection (there should still be only one)
rather than use a global pointer.

Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/svc.c