greybus: core: fix hd-creation error path
authorJohan Hovold <johan@hovoldconsulting.com>
Wed, 2 Sep 2015 15:37:38 +0000 (17:37 +0200)
committerJohan Hovold <johan@hovoldconsulting.com>
Thu, 3 Sep 2015 07:43:46 +0000 (09:43 +0200)
commit1a58a3befaccdf84f5a31e3cecd26c8d57c10890
treea45793f10832a2679ffb2a87e51e0b7863678c96
parentf470ead894e3d33e70f62d43b8e255beb37f183b
greybus: core: fix hd-creation error path

Make sure to return an errno when a host-device buffer-size check fails.

Fixes: 1f92f6404614 ("core: return error code when creating host device")
Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/staging/greybus/core.c