Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 210615
b: refs/heads/master
c: 0109c2c
h: refs/heads/master
i:
  210613: ee55442
  210611: d9c5788
  210607: f08b826
v: v3
  • Loading branch information
mark gross authored and Rafael J. Wysocki committed Sep 10, 2010
1 parent 4bb5641 commit 6797b12
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 152e1d592071c8b312bb898bc1118b64e4aea535
refs/heads/master: 0109c2c48d062a04685638926a35ed20153fedc8
4 changes: 3 additions & 1 deletion trunk/kernel/pm_qos_params.c
Original file line number Diff line number Diff line change
Expand Up @@ -389,10 +389,12 @@ static ssize_t pm_qos_power_write(struct file *filp, const char __user *buf,
} else if (count == 11) { /* len('0x12345678/0') */
if (copy_from_user(ascii_value, buf, 11))
return -EFAULT;
if (strlen(ascii_value) != 10)
return -EINVAL;
x = sscanf(ascii_value, "%x", &value);
if (x != 1)
return -EINVAL;
pr_debug(KERN_ERR "%s, %d, 0x%x\n", ascii_value, x, value);
pr_debug("%s, %d, 0x%x\n", ascii_value, x, value);
} else
return -EINVAL;

Expand Down

0 comments on commit 6797b12

Please sign in to comment.