Commit 914c249b authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ppc64: fix rtas error log length

From: Anton Blanchard <anton@samba.org>

From: Jake Moilanen

Fix for not vmalloc'n space for the sequence number in rtas_log_buf.
parent 24eb3a50
...@@ -372,7 +372,7 @@ static int rtasd(void *unused) ...@@ -372,7 +372,7 @@ static int rtasd(void *unused)
if (event_scan == RTAS_UNKNOWN_SERVICE || get_eventscan_parms() == -1) if (event_scan == RTAS_UNKNOWN_SERVICE || get_eventscan_parms() == -1)
goto error; goto error;
rtas_log_buf = vmalloc(rtas_error_log_max*LOG_NUMBER); rtas_log_buf = vmalloc(rtas_error_log_buffer_max*LOG_NUMBER);
if (!rtas_log_buf) { if (!rtas_log_buf) {
printk(KERN_ERR "rtasd: no memory\n"); printk(KERN_ERR "rtasd: no memory\n");
goto error; goto error;
......
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