Commit 1afa1a91 authored by Paul Jackson's avatar Paul Jackson Committed by David Mosberger

[PATCH] ia64: fix bug in prof_cpu_mask_read_proc()

Display of cpumask for /proc/irq/prof_cpu_mask has a botch in the print
loop - should consume 2 bytes per loop.
parent 92834d36
...@@ -1039,7 +1039,7 @@ static int prof_cpu_mask_read_proc (char *page, char **start, off_t off, ...@@ -1039,7 +1039,7 @@ static int prof_cpu_mask_read_proc (char *page, char **start, off_t off,
if (count < HEX_DIGITS+1) if (count < HEX_DIGITS+1)
return -EINVAL; return -EINVAL;
for (k = 0; k < sizeof(cpumask_t)/sizeof(unsigned long); ++k) { for (k = 0; k < sizeof(cpumask_t)/sizeof(u16); ++k) {
int j = sprintf(page, "%04hx", (u16)cpus_coerce(*mask)); int j = sprintf(page, "%04hx", (u16)cpus_coerce(*mask));
len += j; len += j;
page += j; page += j;
......
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