Skip to content

Commit

Permalink
qeth: fix offset error in non prealloc header path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Frank Blaschka authored and Jeff Garzik committed Oct 27, 2008
1 parent 0f5623c commit e1f03ae
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/s390/net/qeth_core_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}

Expand Down

0 comments on commit e1f03ae

Please sign in to comment.