From: P J P Date: Wed, 3 Apr 2013 02:38:00 +0000 (+0900) Subject: f2fs: add NULL pointer check X-Git-Tag: v3.10-rc1~45^2~33 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfb185a1488810fbae9256c7d52f66c558c6ea04;p=pandora-kernel.git f2fs: add NULL pointer check Commit - fa9150a84c - 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/fa9150a84ca333f68127097c4fa1eda4b3913a22 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 Signed-off-by: Jaegeuk Kim --- Reading git-diff-tree failed