summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValdis Kletnieks <valdis.kletnieks@vt.edu>2019-11-11 21:09:57 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-13 00:15:45 +0100
commitecbc9e989f62e59cdd3e87b1e7babacc765041ba (patch)
tree9fb593b2a4abf1ae0f885784613c196c0c3055fa
parentad03f80f7b7229f39623f6a11fe8cb07cab1c05e (diff)
downloadlinux-ecbc9e989f62e59cdd3e87b1e7babacc765041ba.tar.bz2
staging: exfat: Correct return code
Use -ENOTEMPTY rather than -EEXIST for attempting to remove a directory that still has files in it. Signed-off-by: Valdis Kletnieks <Valdis.Kletnieks@vt.edu> Link: https://lore.kernel.org/r/20191112021000.42091-10-Valdis.Kletnieks@vt.edu Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/exfat/exfat_super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/exfat/exfat_super.c b/drivers/staging/exfat/exfat_super.c
index 3e13e002cd14..4c8afe60d48b 100644
--- a/drivers/staging/exfat/exfat_super.c
+++ b/drivers/staging/exfat/exfat_super.c
@@ -2167,7 +2167,7 @@ static int ffsRemoveDir(struct inode *inode, struct file_id_t *fid)
clu_to_free.flags = fid->flags;
if (!is_dir_empty(sb, &clu_to_free)) {
- ret = -EEXIST;
+ ret = -ENOTEMPTY;
goto out;
}