Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202742
b: refs/heads/master
c: 0423606
h: refs/heads/master
v: v3
  • Loading branch information
Dan Carpenter authored and John W. Linville committed Jun 2, 2010
1 parent 5b982df commit cacc9bb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 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: 2b87f3aac04818f720956e2b70f9b04fc8e2c794
refs/heads/master: 04236066e00ab20c6745569268d67a980bd06abd
18 changes: 9 additions & 9 deletions trunk/drivers/net/wireless/ath/ath9k/debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ static ssize_t write_file_debug(struct file *file, const char __user *user_buf,

len = min(count, sizeof(buf) - 1);
if (copy_from_user(buf, user_buf, len))
return -EINVAL;
return -EFAULT;

buf[len] = '\0';
if (strict_strtoul(buf, 0, &mask))
Expand Down Expand Up @@ -101,7 +101,7 @@ static ssize_t write_file_tx_chainmask(struct file *file, const char __user *use

len = min(count, sizeof(buf) - 1);
if (copy_from_user(buf, user_buf, len))
return -EINVAL;
return -EFAULT;

buf[len] = '\0';
if (strict_strtoul(buf, 0, &mask))
Expand Down Expand Up @@ -143,7 +143,7 @@ static ssize_t write_file_rx_chainmask(struct file *file, const char __user *use

len = min(count, sizeof(buf) - 1);
if (copy_from_user(buf, user_buf, len))
return -EINVAL;
return -EFAULT;

buf[len] = '\0';
if (strict_strtoul(buf, 0, &mask))
Expand Down Expand Up @@ -176,7 +176,7 @@ static ssize_t read_file_dma(struct file *file, char __user *user_buf,

buf = kmalloc(DMA_BUF_LEN, GFP_KERNEL);
if (!buf)
return 0;
return -ENOMEM;

ath9k_ps_wakeup(sc);

Expand Down Expand Up @@ -411,7 +411,7 @@ static ssize_t read_file_rcstat(struct file *file, char __user *user_buf,
max = 80 + sc->cur_rate_table->rate_cnt * 1024 + 1;
buf = kmalloc(max, GFP_KERNEL);
if (buf == NULL)
return 0;
return -ENOMEM;

len += sprintf(buf, "%6s %6s %6s "
"%10s %10s %10s %10s\n",
Expand Down Expand Up @@ -646,7 +646,7 @@ static ssize_t read_file_xmit(struct file *file, char __user *user_buf,

buf = kzalloc(size, GFP_KERNEL);
if (buf == NULL)
return 0;
return -ENOMEM;

len += sprintf(buf, "%30s %10s%10s%10s\n\n", "BE", "BK", "VI", "VO");

Expand Down Expand Up @@ -719,7 +719,7 @@ static ssize_t read_file_recv(struct file *file, char __user *user_buf,

buf = kzalloc(size, GFP_KERNEL);
if (buf == NULL)
return 0;
return -ENOMEM;

len += snprintf(buf + len, size - len,
"%18s : %10u\n", "CRC ERR",
Expand Down Expand Up @@ -838,7 +838,7 @@ static ssize_t write_file_regidx(struct file *file, const char __user *user_buf,

len = min(count, sizeof(buf) - 1);
if (copy_from_user(buf, user_buf, len))
return -EINVAL;
return -EFAULT;

buf[len] = '\0';
if (strict_strtoul(buf, 0, &regidx))
Expand Down Expand Up @@ -880,7 +880,7 @@ static ssize_t write_file_regval(struct file *file, const char __user *user_buf,

len = min(count, sizeof(buf) - 1);
if (copy_from_user(buf, user_buf, len))
return -EINVAL;
return -EFAULT;

buf[len] = '\0';
if (strict_strtoul(buf, 0, &regval))
Expand Down

0 comments on commit cacc9bb

Please sign in to comment.