]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
greybus: interface: put module->dev on failures
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 24 Mar 2015 14:44:29 +0000 (20:14 +0530)
committerGreg Kroah-Hartman <greg@kroah.com>
Tue, 24 Mar 2015 20:00:24 +0000 (21:00 +0100)
commit71e4938012faff9b84916f5424dbf4dff8d1d09e
tree64807734e6c8edad5c8355fc7cd5b761cd1f9466
parent0d34be75878093bef5055311c254ae3ff459fd8f
greybus: interface: put module->dev on failures

In order to decrement the reference count of module on failures, we must call
put_device(module->dev). This was missing for one of the error cases, fix it.

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