eCryptfs: Report errors in writes to /dev/ecryptfs
authorTyler Hicks <tyhicks@canonical.com>
Sat, 14 Jan 2012 14:51:37 +0000 (15:51 +0100)
committerGrazvydas Ignotas <notasas@gmail.com>
Sun, 28 Feb 2016 01:55:13 +0000 (03:55 +0200)
commit9c258a2d2321b54af6e5ecb6936ca82f9f4d33a4
tree8e19dcecccad0604fe523b05bcc4484319af5165
parentbda9fd179bf2da811dcdbb61b48d10a5035b69d6
eCryptfs: Report errors in writes to /dev/ecryptfs

Errors in writes to /dev/ecryptfs were being incorrectly reported by
returning 0 or the value of the original write count.

This patch clears up the return code assignment in error paths.

Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
fs/ecryptfs/miscdev.c