greybus: svc: error out only for smaller payloads received
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 11 Aug 2015 01:59:19 +0000 (07:29 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 12 Aug 2015 00:46:57 +0000 (17:46 -0700)
commit0c32d2a5b2a6f284efd196d568e1df3db5999c5d
treed9b9ba0560e404a5885aee9ee1c8f4759d9a419e
parent10c7ae04e36f05a82dd23eb314092c77df2c2049
greybus: svc: error out only for smaller payloads received

!= was used in place of <, while comparing expected and actual payload
size. The module may be running a higher version of the protocol and
might have some extra fields (towards the end) in the structure, and the
AP needs to ignore them.

This also updates the print (expected-payload-size <
actual-payload-size), when the size doesn't match for requests received
by the module. This gives more details required for debugging.

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