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)
committerTyler Hicks <tyhicks@linux.vnet.ibm.com>
Tue, 9 Aug 2011 18:42:45 +0000 (13:42 -0500)
commitf61500e000eedc0c7a0201200a7f00ba5529c002
tree93ce7e83511a83fa38f4b5d936dc2dfdd3352117
parent322a8b034003c0d46d39af85bf24fee27b902f48
eCryptfs: Return error when lower file pointer is NULL

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>
Cc: <stable@kernel.org>
fs/ecryptfs/read_write.c