Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288910
b: refs/heads/master
c: 28aa41f
h: refs/heads/master
v: v3
  • Loading branch information
Greg Dietsche authored and Greg Kroah-Hartman committed Feb 9, 2012
1 parent 9d0314f commit b94ba0e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 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: e96045a7c837200e65c9fa8f8a94020bc2107931
refs/heads/master: 28aa41fb8d555b120edefd7fdf879b156a1c9f3a
5 changes: 2 additions & 3 deletions trunk/drivers/staging/android/ram_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,15 +411,14 @@ static int __init ram_console_late_init(void)
if (ram_console_old_log == NULL)
return 0;
#ifdef CONFIG_ANDROID_RAM_CONSOLE_EARLY_INIT
ram_console_old_log = kmalloc(ram_console_old_log_size, GFP_KERNEL);
ram_console_old_log = kmemdup(ram_console_old_log_init_buffer,
ram_console_old_log_size, GFP_KERNEL);
if (ram_console_old_log == NULL) {
printk(KERN_ERR
"ram_console: failed to allocate buffer for old log\n");
ram_console_old_log_size = 0;
return 0;
}
memcpy(ram_console_old_log,
ram_console_old_log_init_buffer, ram_console_old_log_size);
#endif
entry = create_proc_entry("last_kmsg", S_IFREG | S_IRUGO, NULL);
if (!entry) {
Expand Down

0 comments on commit b94ba0e

Please sign in to comment.