Skip to content

Commit

Permalink
rt2x00: Use the correct size when copying the control info in txdone
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mattias Nissler authored and John W. Linville committed Mar 13, 2008
1 parent 92f5ac6 commit 95db4d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/rt2x00/rt2x00dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 95db4d4

Please sign in to comment.