OSDN Git Service

greybus: manifest: Account for padding in string descriptor
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 28 Apr 2015 14:21:35 +0000 (19:51 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 29 Apr 2015 13:53:18 +0000 (15:53 +0200)
commitfa2fbf16f6aaaabee9394edc57dc803b59de6699
tree549adabd576f3e0f75eb1ac74a0ea98d4e28e915
parentaf6e8b42334c92b2dcbb93e79b0e7ba4f1d51bb4
greybus: manifest: Account for padding in string descriptor

String descriptors are padded towards the end to align them to 4 byte
boundaries. Take that into account while calculating expected size.

Reviewed-by: Alex Elder <elder@linaro.org>
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/manifest.c