greybus: es2: Release reserved cports CDSI0 and CDSI1
authorVaibhav Agarwal <vaibhav.agarwal@linaro.org>
Fri, 27 May 2016 05:19:24 +0000 (10:49 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 27 May 2016 18:27:28 +0000 (11:27 -0700)
commit52033fdebc92021490729465e27ffb47cd42b0e0
tree6dc93790efc46cb376a87ef5fe5387af66e74360
parent29a822bdf77a0c2af5b556506f3cf3175a9a4a98
greybus: es2: Release reserved cports CDSI0 and CDSI1

Unique ids were reserved for CDSI0 and CDSI1 during _probe, however
missed to release those ids during disconnect. This causes a memory leak
of 128 bytes for each iteration of unipro_reset. Fix this.

Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@linaro.org>
Reviewed-by: Johan Hovold <johan@hovoldconsulting.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/es2.c