projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pstore/ram: Regularize prz label allocation lifetime
[linux-2.6-microblaze.git]
/
fs
/
pstore
/
ram_core.c
diff --git
a/fs/pstore/ram_core.c
b/fs/pstore/ram_core.c
index
8823f65
..
1f4d8c0
100644
(file)
--- a/
fs/pstore/ram_core.c
+++ b/
fs/pstore/ram_core.c
@@
-574,7
+574,7
@@
struct persistent_ram_zone *persistent_ram_new(phys_addr_t start, size_t size,
/* Initialize general buffer state. */
raw_spin_lock_init(&prz->buffer_lock);
prz->flags = flags;
- prz->label =
label
;
+ prz->label =
kstrdup(label, GFP_KERNEL)
;
ret = persistent_ram_buffer_map(start, size, prz, memtype);
if (ret)