From: Li Zefan Date: Mon, 21 Jul 2008 10:06:36 +0000 (+0800) Subject: [PATCH] vfs: use kstrdup() and check failing allocation X-Git-Tag: v2.6.27-rc1~73^2~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88b387824fdaecb6ba0f471acf0aadf7d24739fd;p=pandora-kernel.git [PATCH] vfs: use kstrdup() and check failing allocation - use kstrdup() instead of kmalloc() + memcpy() - return NULL if allocating ->mnt_devname failed - mnt_devname should be const Signed-off-by: Li Zefan Acked-by: Cyrill Gorcunov Signed-off-by: Al Viro --- Reading git-diff-tree failed