[PATCH] powerpc/powernv: fix construction of opal PRD messages

Stewart Smith stewart at linux.vnet.ibm.com
Tue Jun 16 11:25:45 AEST 2015

Jeremy Kerr <jk at ozlabs.org> writes:
> We currently have a bug in the PRD code, where the contents of an
> incoming message (beyond the header) will be overwritten by the list
> item manipulations when adding to to the prd_msg_queue.
> This change reorders struct opal_prd_msg_queue_item, so that the
> message body doesn't overlap the list_head.
> We also clarify the memcpy of the message, as we're copying unnecessary
> bytes at the end of the message data.
> Signed-off-by: Jeremy Kerr <jk at ozlabs.org>

Acked-by: Stewart Smith <stewart at linux.vnet.ibm.com>

More information about the Linuxppc-dev mailing list