]> git.baikalelectronics.ru Git - kernel.git/commit
eCryptfs: Report errors in writes to /dev/ecryptfs
authorTyler Hicks <tyhicks@canonical.com>
Sat, 14 Jan 2012 14:51:37 +0000 (15:51 +0100)
committerTyler Hicks <tyhicks@canonical.com>
Wed, 25 Jan 2012 20:43:39 +0000 (14:43 -0600)
commit4eff230c9290a95de1ada7c97d0e2f229bf66681
tree0aa0044c7074095e15ac86a6f1be00c5bc0df8f7
parentc84d46422e78df64850327b2701bda8bee74aa34
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