rt2x00: Use the correct size when copying the control info in txdone
authorMattias Nissler <mattias.nissler@gmx.de>
Sun, 9 Mar 2008 21:39:32 +0000 (22:39 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 13 Mar 2008 20:02:34 +0000 (16:02 -0400)
The sizeof() operator was incorrectly applied to the pointer, not the struct.

Signed-off-by: Mattias Nissler <mattias.nissler@gmx.de>
Signed-off-by: Ivo van Doorn <IvDoorn@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rt2x00/rt2x00dev.c

index b3a639aa0540ffb6ae8df59444322b8729c0918b..141b9b8a1997428942f269d5370ea9b17c90dce1 100644 (file)
@@ -521,7 +521,7 @@ void rt2x00lib_txdone(struct queue_entry *entry,
        tx_status.ack_signal = 0;
        tx_status.excessive_retries = (txdesc->status == TX_FAIL_RETRY);
        tx_status.retry_count = txdesc->retry;
-       memcpy(&tx_status.control, txdesc->control, sizeof(txdesc->control));
+       memcpy(&tx_status.control, txdesc->control, sizeof(*txdesc->control));
 
        if (!(tx_status.control.flags & IEEE80211_TXCTL_NO_ACK)) {
                if (success)
This page took 0.026693 seconds and 5 git commands to generate.