rt2x00: Properly reserve room for descriptors in skbs.
Instead of fiddling with the skb->data pointer and thereby risking out of bounds accesses, properly reserve the space needed in an skb for descriptors. Signed-off-by: Gertjan van Wingerde <gwingerde@gmail.com> Acked-by: Ivo van Doorn <IvDoorn@gmail.com> Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
This commit is contained in:

committed by
Ivo van Doorn

parent
baaffe67b5
commit
0b8004aa12
@@ -1365,7 +1365,7 @@ static void rt2500pci_txdone(struct rt2x00_dev *rt2x00dev,
|
||||
}
|
||||
txdesc.retry = rt2x00_get_field32(word, TXD_W0_RETRY_COUNT);
|
||||
|
||||
rt2x00lib_txdone(entry, &txdesc);
|
||||
rt2x00pci_txdone(entry, &txdesc);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user