From: Akira Fujita Date: Thu, 4 Mar 2010 05:34:58 +0000 (-0500) Subject: ext4: Fix the NULL reference in double_down_write_data_sem() X-Git-Tag: v2.6.34-rc1~199^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7247c0caa23d94a1cb6b307edba9dc45fb0798d4;p=pandora-kernel.git ext4: Fix the NULL reference in double_down_write_data_sem() If EXT4_IOC_MOVE_EXT ioctl is called with NULL donor_fd, fget() in ext4_ioctl() gets inappropriate file structure for donor; so we need to do this check earlier, before calling double_down_write_data_sem(). Signed-off-by: Akira Fujita Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed