commit | e619e8505b66229fdf2735ac00891d340111b0a8 | [log] [tgz] |
---|---|---|
author | Perry Hung <perry@leaflabs.com> | Fri Jul 24 19:02:29 2015 -0400 |
committer | Greg Kroah-Hartman <gregkh@google.com> | Fri Jul 24 16:39:58 2015 -0700 |
tree | 2674bb328c9fd3d7939cd6ef66f91bcba510b045 | |
parent | 23119de4e69c8a96f10de4bcc62d3751e7d77eb4 [diff] |
greybus: battery: fix panic on operation error If an operation times out or otherwise returns an error, val->intval should not be set and an error-code should be returned. Fixes a panic on unload while receiving -ENOTCONN. Signed-off-by: Perry Hung <perry@leaflabs.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>