From: Kristian Høgsberg Date: Fri, 16 Feb 2007 22:34:37 +0000 (-0500) Subject: firewire: Use correct payload pointer when demarshalling incoming requests. X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=6e2e8424d310507fa044649435114217826ed78a;p=openwrt%2Fstaging%2Fblogic.git firewire: Use correct payload pointer when demarshalling incoming requests. Signed-off-by: Kristian Høgsberg Signed-off-by: Stefan Richter --- diff --git a/drivers/firewire/fw-transaction.c b/drivers/firewire/fw-transaction.c index 5394569a1c89..abc37fa52492 100644 --- a/drivers/firewire/fw-transaction.c +++ b/drivers/firewire/fw-transaction.c @@ -575,7 +575,7 @@ allocate_request(struct fw_packet *p) request->ack = p->ack; request->length = length; if (data) - memcpy(request->data, p->payload, length); + memcpy(request->data, data, length); memcpy(request->request_header, p->header, sizeof p->header);