Re: [PATCH v2] soc: qcom: cmd-db: Make endian-agnostic

From: Stephen Boyd
Date: Mon Apr 23 2018 - 11:39:43 EST


Quoting Stephen Boyd (2018-04-19 11:29:24)
> +
> +static inline void *
> +rsc_offset(struct rsc_hdr *hdr, struct entry_header *ent)
> +{
> + u16 offset = le16_to_cpu(hdr->header_offset);

This should be hdr->data_offset instead of header_offset.