]> git.baikalelectronics.ru Git - kernel.git/commit
f2fs: add NULL pointer check
authorP J P <ppandit@redhat.com>
Wed, 3 Apr 2013 02:38:00 +0000 (11:38 +0900)
committerJaegeuk Kim <jaegeuk.kim@samsung.com>
Wed, 3 Apr 2013 08:27:52 +0000 (17:27 +0900)
commit4994cfeee3bfd5b7002b9f32de1e460c76c6e65b
tree5d6f89c0d25fcbf4cfdf37edc1e59f7e43df8636
parent5ee36d89637f6d5ac458d637be33618fc8507325
f2fs: add NULL pointer check

Commit - 137b4ccb03 - replaces a call to generic_writepages() in
f2fs_write_data_pages() with write_cache_pages(), with a function pointer
argument pointing to routine: __f2fs_writepage.

  -> https://git.kernel.org/linus/137b4ccb0357307e272d195c6f4e08e8a0ee18d8

  This patch adds a NULL pointer check in f2fs_write_data_pages() to avoid
  a possible NULL pointer dereference, in case if - mapping->a_ops->writepage -
  is NULL.

Signed-off-by: P J P <ppandit@redhat.com>
Signed-off-by: Jaegeuk Kim <jaegeuk.kim@samsung.com>
fs/f2fs/data.c