ext4 crypto: fix memleak in ext4_readdir()
authorKirill Tkhai <ktkhai@virtuozzo.com>
Tue, 16 Feb 2016 05:20:19 +0000 (00:20 -0500)
committerIan Chang <ianc@nvidia.com>
Wed, 1 Jun 2016 05:00:06 +0000 (13:00 +0800)
commitb9bff17b278761f79a0436beff4fa077dcf7e81c
treeba6cb315393b4537ac27719468016cc01fcc59bf
parent0757a3b40bace1b0019c3891df42719a07f41aed
ext4 crypto: fix memleak in ext4_readdir()

When ext4_bread() fails, fname_crypto_str remains
allocated after return. Fix that.

Signed-off-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
CC: Dmitry Monakhov <dmonakhov@virtuozzo.com>
Signed-off-by: Theodore Ts'o <tytso@google.com>
Change-Id: Ie137cb7be090c52c65c65872035b537ece8c2f17
Reviewed-on: http://git-master/r/1154521
Reviewed-by: Ian Chang <ianc@nvidia.com>
Tested-by: Ian Chang <ianc@nvidia.com>
fs/ext4/dir.c