]> git.baikalelectronics.ru Git - kernel.git/commit
eCryptfs: release mutex on hash error path
authorMichael Halcrow <mhalcrow@us.ibm.com>
Mon, 5 Nov 2007 22:51:04 +0000 (14:51 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Mon, 5 Nov 2007 23:12:33 +0000 (15:12 -0800)
commit2b1386dd4d00371431048d17a8d8344a574bfbd1
tree384f27ea6300fe50345b0ab5cd7fdad23d0bdb79
parentfb17eb5f62b8f6355c6f967891b27e27616486e0
eCryptfs: release mutex on hash error path

Release the crypt_stat hash mutex on allocation error. Check for error
conditions when doing crypto hash calls.

Signed-off-by: Michael Halcrow <mhalcrow@us.ibm.com>
Reported-by: Kazuki Ohta <kazuki.ohta@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ecryptfs/crypto.c