]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
qeth: fix offset error in non prealloc header path
authorFrank Blaschka <frank.blaschka@de.ibm.com>
Fri, 24 Oct 2008 09:16:53 +0000 (11:16 +0200)
committerJeff Garzik <jgarzik@redhat.com>
Mon, 27 Oct 2008 18:48:44 +0000 (14:48 -0400)
For the non preallocated qeth header code path we should not
change the header length.

Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/s390/net/qeth_core_main.c

index 7de410d5be4a8cd95dfc9fd4a61e7aadb5432800..52d26592c72c1a03ee640710d148d3aa44a1b781 100644 (file)
@@ -3025,7 +3025,7 @@ static inline void __qeth_fill_buffer(struct sk_buff *skb,
        struct qdio_buffer *buffer, int is_tso, int *next_element_to_fill,
        int offset)
 {
-       int length = skb->len - offset;
+       int length = skb->len;
        int length_here;
        int element;
        char *data;
@@ -3037,6 +3037,7 @@ static inline void __qeth_fill_buffer(struct sk_buff *skb,
 
        if (offset >= 0) {
                data = skb->data + offset;
+               length -= offset;
                first_lap = 0;
        }