greybus: es1-ap-usb: don't use 'es1' after it is freed
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 24 Nov 2014 03:55:24 +0000 (09:25 +0530)
committerGreg Kroah-Hartman <greg@kroah.com>
Mon, 24 Nov 2014 21:54:45 +0000 (13:54 -0800)
commitecc25a7f58d9be842f591800f13f932396fb72af
tree128426564fdf6cd38b43352e0954693a4597b2f3
parentbf2329fd7d2795b9ce7146ca9e7092a7f507ce59
greybus: es1-ap-usb: don't use 'es1' after it is freed

greybus_remove_hd() will free memory allocated to 'es1' and so using it after
the routine has returned isn't right.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/staging/greybus/es1-ap-usb.c