Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 279204
b: refs/heads/master
c: bd24a50
h: refs/heads/master
v: v3
  • Loading branch information
Aarthi Thiruvengadam authored and Kalle Valo committed Nov 13, 2011
1 parent d5cec0c commit ce08757
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 4eab6f4f43032015131db97f089734633c1b3c1f
refs/heads/master: bd24a50fe66ef1f64a84a3d02e0f464bb394bb9b
6 changes: 5 additions & 1 deletion trunk/drivers/net/wireless/ath/ath6kl/wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -3024,8 +3024,12 @@ int ath6kl_wmi_send_probe_response_cmd(struct wmi *wmi, u8 if_idx, u32 freq,
{
struct sk_buff *skb;
struct wmi_p2p_probe_response_cmd *p;
size_t cmd_len = sizeof(*p) + data_len;

skb = ath6kl_wmi_get_new_buf(sizeof(*p) + data_len);
if (data_len == 0)
cmd_len++; /* work around target minimum length requirement */

skb = ath6kl_wmi_get_new_buf(cmd_len);
if (!skb)
return -ENOMEM;

Expand Down

0 comments on commit ce08757

Please sign in to comment.