diff options
author | Li Zefan | 2008-07-21 12:06:36 +0200 |
---|---|---|
committer | Al Viro | 2008-07-27 02:53:24 +0200 |
commit | 88b387824fdaecb6ba0f471acf0aadf7d24739fd (patch) | |
tree | bd0e169bc0d2a802cd4ea58baf957bfa4602e956 /include/linux/kthread.h | |
parent | [PATCH] more nameidata removal: exec_permission_lite() doesn't need it (diff) | |
download | kernel-qcow2-linux-88b387824fdaecb6ba0f471acf0aadf7d24739fd.tar.gz kernel-qcow2-linux-88b387824fdaecb6ba0f471acf0aadf7d24739fd.tar.xz kernel-qcow2-linux-88b387824fdaecb6ba0f471acf0aadf7d24739fd.zip |
[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 <lizf@cn.fujitsu.com>
Acked-by: Cyrill Gorcunov <gorcunov@gmail.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'include/linux/kthread.h')
0 files changed, 0 insertions, 0 deletions