bugfix: prevent a NULL ptr deref if branch is nfs and using mmap writes
authorErez_Zadok <ezk@cs.sunysb.edu>
Thu, 24 May 2007 01:27:58 +0000 (21:27 -0400)
committerErez Zadok <ezk@cs.sunysb.edu>
Sun, 23 Mar 2008 03:43:06 +0000 (23:43 -0400)
commit3664bf8ae5eff677b3e27ae56c2b76962a362e68
tree7895fa2959dce0043ef1bfd0dd03d6e29ce321b5
parent006b16ac1e65beeae23537f32afc8970d1d1dfd3
bugfix: prevent a NULL ptr deref if branch is nfs and using mmap writes

By some strange condition, the VFS can pass our unionfs_writepage a
writeback_control structure which, if passed as is to the lower ->writepage
-- here nfs_writepage, triggers a NULL ptr deref in NFS.  This fix works
around this issue, and results in a successfully written mmaped file.

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
fs/unionfs/mmap.c