staging: lustre: lustre: llite: Use kstrdup
authorTapasweni Pathak <tapaswenipathak@gmail.com>
Fri, 24 Oct 2014 16:16:00 +0000 (21:46 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Oct 2014 02:33:05 +0000 (10:33 +0800)
commitb3dd8957c23a9e2eed612469d02a6e418b585e6b
tree0e93541f176221ac1482ce62fff096513ec649c4
parent438c582602b9e0b421bd356f3f2cdc77fe45eb5b
staging: lustre: lustre: llite: Use kstrdup

Use kstrdup when the goal of an allocation is copy a string into the
allocated region.

Patch found by coccicheck.

Signed-off-by: Tapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/llite/xattr_cache.c
This page took 0.024911 seconds and 5 git commands to generate.