sysvfs: fix NULL deref. when allocating new inode
authorLubomir Rintel <lkundrak@v3.sk>
Tue, 29 Jun 2010 22:05:38 +0000 (15:05 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Jun 2010 22:29:32 +0000 (15:29 -0700)
commit46c23d7f520e315dde86881b38ba92ebdf34ced5
tree30a14e15710e9fe9ba38ac667ce7ed5734db3342
parent926b1e2ca35ccb3cbe0ea9b322c5330869b95046
sysvfs: fix NULL deref. when allocating new inode

A call to sysv_write_inode() in sysv_new_inode() to its new interface that
replaced wait flag with writeback structure.  This was broken by
a9185b41a4f84971b930c519f0c63bd450c4810d ("pass writeback_control to
->write_inode").

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: <stable@kernel.org> [2.6.34.x]
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/sysv/ialloc.c