greybus: module: fix double freeing of module structure
authorViresh Kumar <viresh.kumar@linaro.org>
Wed, 21 Oct 2015 09:56:45 +0000 (15:26 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 21 Oct 2015 23:17:05 +0000 (16:17 -0700)
commitf7d3ad9828eba01ed2f5ccc1a12b8b1362ed02b4
tree15b85055ca549462c52de87596f9298cd38efb87
parent63e8a14b1f9107ee2b51205385695be43ca40d5e
greybus: module: fix double freeing of module structure

The module will be released by gb_module_release() once all references
for the module are dropped. And so there is no need to free it in the
error path specially.

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