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
@@ -282,9 +282,8 @@ int rt2800_wait_wpdma_ready(struct rt2x00_dev *rt2x00dev)
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(rt2800_wait_wpdma_ready);
|
||||
|
||||
void rt2800_write_txwi(struct sk_buff *skb, struct txentry_desc *txdesc)
|
||||
void rt2800_write_txwi(__le32 *txwi, struct txentry_desc *txdesc)
|
||||
{
|
||||
__le32 *txwi = (__le32 *)(skb->data - TXWI_DESC_SIZE);
|
||||
u32 word;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user