Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262401
b: refs/heads/master
c: af6df87
h: refs/heads/master
i:
  262399: 96fae13
v: v3
  • Loading branch information
Peter Huewe authored and Heiko Carstens committed Aug 3, 2011
1 parent 51599f3 commit e9a03ad
Show file tree
Hide file tree
Showing 2 changed files with 4 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: d5f4d113cb9dac182ba44eb605ec4a2f1fdfd3ec
refs/heads/master: af6df871ba87ff93739babb16d26160c37c43183
12 changes: 3 additions & 9 deletions trunk/drivers/s390/cio/qdio_debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -188,19 +188,13 @@ static ssize_t qperf_seq_write(struct file *file, const char __user *ubuf,
struct qdio_irq *irq_ptr = seq->private;
struct qdio_q *q;
unsigned long val;
char buf[8];
int ret, i;

if (!irq_ptr)
return 0;
if (count >= sizeof(buf))
return -EINVAL;
if (copy_from_user(&buf, ubuf, count))
return -EFAULT;
buf[count] = 0;

ret = strict_strtoul(buf, 10, &val);
if (ret < 0)

ret = kstrtoul_from_user(ubuf, count, 10, &val);
if (ret)
return ret;

switch (val) {
Expand Down

0 comments on commit e9a03ad

Please sign in to comment.