Re: [PATCH] misc: mic: use kstrdup() in mic_sysfs

2015-10-04 Thread Greg Kroah-Hartman
On Fri, Oct 02, 2015 at 10:43:34AM +0800, Geliang Tang wrote: > Use kstrdup instead of kmalloc and strncpy. > > Signed-off-by: Geliang Tang > --- > drivers/misc/mic/host/mic_sysfs.c | 23 --- > 1 file changed, 4 insertions(+), 19 deletions(-) This file isn't even in the tree

[PATCH] misc: mic: use kstrdup() in mic_sysfs

2015-10-01 Thread Geliang Tang
Use kstrdup instead of kmalloc and strncpy. Signed-off-by: Geliang Tang --- drivers/misc/mic/host/mic_sysfs.c | 23 --- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/drivers/misc/mic/host/mic_sysfs.c b/drivers/misc/mic/host/mic_sysfs.c index 6dd864e..7b67aea