fs: pstore: Replaced calls to kmalloc and memcpy with kmemdup
authorAlexandru Gheorghiu <gheorghiuandru@gmail.com>
Sat, 9 Mar 2013 11:57:28 +0000 (13:57 +0200)
committerTony Luck <tony.luck@intel.com>
Mon, 11 Mar 2013 19:13:21 +0000 (12:13 -0700)
commiteeb65d9cb5159752e672b5164110838bb5936a4a
treee1d2400c828ca0956f1bb3b7c39c04d3cb7ab988
parentf6161aa153581da4a3867a2d1a7caf4be19b6ec9
fs: pstore: Replaced calls to kmalloc and memcpy with kmemdup

Replaced calls to kmalloc and memcpy with a single call to kmemdup.
This patch was found using coccicheck.

Signed-off-by: Alexandru Gheorghiu <gheorghiuandru@gmail.com>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
fs/pstore/ram.c