ext4: fix coverity warning on error path of filename setup
authorGabriel Krisman Bertazi <krisman@collabora.com>
Tue, 2 Jul 2019 21:53:22 +0000 (17:53 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 2 Jul 2019 21:56:12 +0000 (17:56 -0400)
commit96fcaf86c3cb9340015fb475d79ef0a6fcf858ed
tree800f08721544f6984ea1ef0a8db2ca28cab343b3
parent78e9605d4fdde6d58b2e6db5b6b52dde7f92333e
ext4: fix coverity warning on error path of filename setup

Fix the following coverity warning reported by Dan Carpenter:

fs/ext4/namei.c:1311 ext4_fname_setup_ci_filename()
  warn: 'cf_name->len' unsigned <= 0

Fixes: 3ae72562ad91 ("ext4: optimize case-insensitive lookups")
Signed-off-by: Gabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
fs/ext4/namei.c