Commit e1f03ae8 authored by Frank Blaschka's avatar Frank Blaschka Committed by Jeff Garzik

qeth: fix offset error in non prealloc header path

For the non preallocated qeth header code path we should not
change the header length.
Signed-off-by: default avatarFrank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: default avatarJeff Garzik <jgarzik@redhat.com>
parent 0f5623c9
...@@ -3025,7 +3025,7 @@ static inline void __qeth_fill_buffer(struct sk_buff *skb, ...@@ -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, struct qdio_buffer *buffer, int is_tso, int *next_element_to_fill,
int offset) int offset)
{ {
int length = skb->len - offset; int length = skb->len;
int length_here; int length_here;
int element; int element;
char *data; char *data;
...@@ -3037,6 +3037,7 @@ static inline void __qeth_fill_buffer(struct sk_buff *skb, ...@@ -3037,6 +3037,7 @@ static inline void __qeth_fill_buffer(struct sk_buff *skb,
if (offset >= 0) { if (offset >= 0) {
data = skb->data + offset; data = skb->data + offset;
length -= offset;
first_lap = 0; first_lap = 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment