Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 369849
b: refs/heads/master
c: 3309ccf
h: refs/heads/master
i:
  369847: 82b33b3
v: v3
  • Loading branch information
Stanislaw Gruszka authored and Johannes Berg committed Apr 18, 2013
1 parent ac4ddc5 commit 307e1e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 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: 0aed849f61c1235041f98e4178d0a60aaa1dc548
refs/heads/master: 3309ccf7fcebceef540ebe90c65d2f94d745a45b
16 changes: 8 additions & 8 deletions trunk/drivers/net/wireless/iwlwifi/dvm/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -2237,15 +2237,15 @@ static ssize_t iwl_dbgfs_log_event_read(struct file *file,
size_t count, loff_t *ppos)
{
struct iwl_priv *priv = file->private_data;
char *buf;
int pos = 0;
ssize_t ret = -ENOMEM;
char *buf = NULL;
ssize_t ret;

ret = pos = iwl_dump_nic_event_log(priv, true, &buf, true);
if (buf) {
ret = simple_read_from_buffer(user_buf, count, ppos, buf, pos);
kfree(buf);
}
ret = iwl_dump_nic_event_log(priv, true, &buf, true);
if (ret < 0)
goto err;
ret = simple_read_from_buffer(user_buf, count, ppos, buf, ret);
err:
kfree(buf);
return ret;
}

Expand Down

0 comments on commit 307e1e9

Please sign in to comment.