Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 291469
b: refs/heads/master
c: 7504a3e
h: refs/heads/master
i:
  291467: 82fc4de
v: v3
  • Loading branch information
Etay Luz authored and Kalle Valo committed Mar 1, 2012
1 parent c4a465a commit 770a73b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 67cd22e48d4acd3ac8c0032b628537bb27e92a24
refs/heads/master: 7504a3e1f552cf7447835e7a893bea4bb2d6541d
5 changes: 4 additions & 1 deletion trunk/drivers/net/wireless/ath/ath6kl/debug.c
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ void ath6kl_debug_fwlog_event(struct ath6kl *ar, const void *buf, size_t len)
if (WARN_ON(len > ATH6KL_FWLOG_PAYLOAD_SIZE))
return;

slot_len = sizeof(*slot) + len;
slot_len = sizeof(*slot) + ATH6KL_FWLOG_PAYLOAD_SIZE;

skb = alloc_skb(slot_len, GFP_KERNEL);
if (!skb)
Expand All @@ -288,6 +288,9 @@ void ath6kl_debug_fwlog_event(struct ath6kl *ar, const void *buf, size_t len)
slot->length = cpu_to_le32(len);
memcpy(slot->payload, buf, len);

/* Need to pad each record to fixed length ATH6KL_FWLOG_PAYLOAD_SIZE */
memset(slot->payload + len, 0, ATH6KL_FWLOG_PAYLOAD_SIZE - len);

spin_lock(&ar->debug.fwlog_queue.lock);

__skb_queue_tail(&ar->debug.fwlog_queue, skb);
Expand Down

0 comments on commit 770a73b

Please sign in to comment.