Commit d22d63e3 authored by John Levon's avatar John Levon Committed by Linus Torvalds

[PATCH] oprofile: fix oprofilefs integer files base

This patch allows the oprofilefs files to take entry in any base
instead of just base 10
parent 3dbea173
...@@ -114,7 +114,7 @@ int oprofilefs_ulong_from_user(unsigned long * val, char const * buf, size_t cou ...@@ -114,7 +114,7 @@ int oprofilefs_ulong_from_user(unsigned long * val, char const * buf, size_t cou
return -EFAULT; return -EFAULT;
spin_lock(&oprofilefs_lock); spin_lock(&oprofilefs_lock);
*val = simple_strtoul(tmpbuf, NULL, 10); *val = simple_strtoul(tmpbuf, NULL, 0);
spin_unlock(&oprofilefs_lock); spin_unlock(&oprofilefs_lock);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment