diff options
author | Ivo van Doorn <ivdoorn@gmail.com> | 2008-03-09 17:40:06 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2008-03-13 16:02:34 -0400 |
commit | 2d1be5b0d17134ddba65c752557b1f47c8009db2 (patch) | |
tree | 03766e4f1d71d19b24a766f2507da7ed22f6929f /drivers/net/wireless | |
parent | 95db4d4d5f00cc9b2aa703a05a70902776d8c2f2 (diff) |
rt2x00: Don't use uninitialized desc_len
skbdesc->desc_len is uninitialized at the start
of the function. So it is a _bad_ idea to use it...
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/rt2x00/rt73usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rt2x00/rt73usb.c b/drivers/net/wireless/rt2x00/rt73usb.c index b4b70850edfc..a48c82f09216 100644 --- a/drivers/net/wireless/rt2x00/rt73usb.c +++ b/drivers/net/wireless/rt2x00/rt73usb.c | |||
@@ -1381,7 +1381,7 @@ static void rt73usb_fill_rxdone(struct queue_entry *entry, | |||
1381 | skb_push(entry->skb, offset); | 1381 | skb_push(entry->skb, offset); |
1382 | memcpy(entry->skb->data, rxd, entry->queue->desc_size); | 1382 | memcpy(entry->skb->data, rxd, entry->queue->desc_size); |
1383 | rxd = (__le32 *)entry->skb->data; | 1383 | rxd = (__le32 *)entry->skb->data; |
1384 | skb_pull(entry->skb, offset + skbdesc->desc_len); | 1384 | skb_pull(entry->skb, offset + entry->queue->desc_size); |
1385 | skb_trim(entry->skb, rxdesc->size); | 1385 | skb_trim(entry->skb, rxdesc->size); |
1386 | 1386 | ||
1387 | /* | 1387 | /* |