]> git.karo-electronics.de Git - linux-beck.git/commit
greybus: svc: Pass the correct pointer to input_free_device()
authorVaibhav Hiremath <hiremath_vaibhav@projectara.com>
Wed, 15 Jun 2016 04:53:23 +0000 (10:23 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 16 Jun 2016 06:57:20 +0000 (23:57 -0700)
commit880bc0a4afa66e36f62e5687bef464a751781d55
tree9313db967ffe9bed75ad34f6ced95bf1b55989fe
parent9120b9060bca4528d13de5c4e6522e6a78110704
greybus: svc: Pass the correct pointer to input_free_device()

In gb_svc_input_create() fn, on failure, wrong pointer
was being passed to input_free_device(). Correct it.

svc->input gets initialized only on successful return of this fn,
so it is absolutely wrong to pass svc->input to input_free_device().

Testing Done: Tested on EVT2.0 platform.

Signed-off-by: Vaibhav Hiremath <vaibhav.hiremath@linaro.org>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/svc.c