ext4: don't dereference null pointer when make_indexed_dir() fails
authorAllison Henderson <achender@linux.vnet.ibm.com>
Sun, 15 May 2011 04:19:41 +0000 (00:19 -0400)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Mon, 10 Feb 2014 21:11:28 +0000 (16:11 -0500)
commit3b73beed27b6ad3877b7257ae17419930b8ae90c
treea3de7694fe7660b41b558e6faf70934e9a94bf6c
parent20341d16ad9e8df56cbeac40471a6883ca60d751
ext4: don't dereference null pointer when make_indexed_dir() fails

commit 6976a6f2acde2b0443cd64f1d08af90630e4ce81 upstream.

Fix for a null pointer bug found while running punch hole tests

Signed-off-by: Allison Henderson <achender@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
fs/ext4/namei.c