]> git.baikalelectronics.ru Git - kernel.git/commit
hostfs: use kmalloc instead of kzalloc
authorJames Hogan <james.hogan@imgtec.com>
Wed, 27 Mar 2013 10:47:14 +0000 (10:47 +0000)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 4 May 2013 19:48:45 +0000 (15:48 -0400)
commitf1cf6ab869dd1b9e7b4cf48e0eecf6e7dc5fca9d
treea034feee1863945b7c6aeba6d5cfa98dcba58d91
parentceab8148d4de0538618d8a9eef841554ef00bc68
hostfs: use kmalloc instead of kzalloc

The inode info structure is zeroed at allocation with kzalloc, and then
all but one of the fields (including the largest, vfs_inode) are
initialised explicitly. Switch to using kmalloc and initialise the
remaining field too.

Reported-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/hostfs/hostfs_kern.c