eCryptfs: Return error when lower file pointer is NULL
authorTyler Hicks <tyhicks@linux.vnet.ibm.com>
Fri, 5 Aug 2011 03:58:51 +0000 (22:58 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 16 Aug 2011 01:31:41 +0000 (18:31 -0700)
commit8c9729a2ca6291a80c4d0473ae64f2b7a547cc9e
treece1d59be1b518b9817b3ba990c12c366648e7d54
parented60157d262ebc0a032362013c58665d490edeee
eCryptfs: Return error when lower file pointer is NULL

commit f61500e000eedc0c7a0201200a7f00ba5529c002 upstream.

When an eCryptfs inode's lower file has been closed, and the pointer has
been set to NULL, return an error when trying to do a lower read or
write rather than calling BUG().

https://bugzilla.kernel.org/show_bug.cgi?id=37292

Signed-off-by: Tyler Hicks <tyhicks@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ecryptfs/read_write.c