greybus: manifest: fix illegal free in error path
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 13 Apr 2016 17:18:55 +0000 (19:18 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 21 Apr 2016 01:03:13 +0000 (10:03 +0900)
commit7d963cbe8302d16d2171ecc729782f0d2e7cfbe7
treebb950248555ed2bfae2fecf99288a534d557e161
parentd1d67714a4ece3c1438c9d7def324ee0424e7cbd
greybus: manifest: fix illegal free in error path

The manifest-parsing code could end up leaving the interface
vendor_string set to an error pointer that we'd eventually try to free
when destroying the interface.

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