]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: Fix the NULL reference in double_down_write_data_sem()
authorAkira Fujita <a-fujita@rs.jp.nec.com>
Thu, 4 Mar 2010 05:34:58 +0000 (00:34 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 4 Mar 2010 05:34:58 +0000 (00:34 -0500)
commit4421c35e67ec1b0a54d934bcdfb0d8464790f7fb
tree435dd65425ea98ce4e10396f27c7a2f02dde15c8
parent0963422a436d36637e3bc2d64dde17fd86052d4a
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 <a-fujita@rs.jp.nec.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/move_extent.c