Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 354267
b: refs/heads/master
c: 2643c47
h: refs/heads/master
i:
  354265: 9db5a84
  354263: 02d5b08
v: v3
  • Loading branch information
Peter Huewe authored and Greg Kroah-Hartman committed Jan 30, 2013
1 parent 8c34de1 commit 58a4ba9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: d662b8eba94e9f6d4c036719dbf629ef0c9309cf
refs/heads/master: 2643c47fa4accb49abf46a1486909e20e4bb5df9
6 changes: 3 additions & 3 deletions trunk/drivers/staging/csr/drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -819,15 +819,15 @@ unifi_write(struct file *filp, const char *p, size_t len, loff_t *poff)
unifi_trace(priv, UDBG2, "unifi_write: signal 0x%.4X len:%d\n",
sig_id, signal_size);

/* Allocate a buffer for the signal */
signal_buf = kmalloc(signal_size, GFP_KERNEL);
/* Allocate a buffer for the signal */
signal_buf = kmemdup(bulkdata.d[0].os_data_ptr, signal_size,
GFP_KERNEL);
if (!signal_buf) {
unifi_net_data_free(priv, &bulkdata.d[0]);
return -ENOMEM;
}

/* Get the signal from the os_data_ptr */
memcpy(signal_buf, bulkdata.d[0].os_data_ptr, signal_size);
signal_buf[5] = (pcli->sender_id >> 8) & 0xff;

if (signal_size < len) {
Expand Down

0 comments on commit 58a4ba9

Please sign in to comment.