greybus: fix a leak on error in gb_module_create()
We should release ->interfaces[0] as well. Fixes: b15d97d7 ("greybus: core: add module abstraction") Signed-off-by: NDan Carpenter <dan.carpenter@oracle.com> Acked-by: NViresh Kumar <viresh.kumar@linaro.org> Acked-by: NJohan Hovold <johan@kernel.org> Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Showing
想要评论请 注册 或 登录