]> err.no Git - linux-2.6/commitdiff
firewire: Use correct payload pointer when demarshalling incoming requests.
authorKristian Høgsberg <krh@redhat.com>
Fri, 16 Feb 2007 22:34:37 +0000 (17:34 -0500)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Fri, 9 Mar 2007 21:02:57 +0000 (22:02 +0100)
Signed-off-by: Kristian Høgsberg <krh@redhat.com>
Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/fw-transaction.c

index 5394569a1c8934a9763d4955447cf05176254925..abc37fa5249291b29c0002c307830597d4a99cbb 100644 (file)
@@ -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);