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>
This commit is contained in:
parent
ad03f80f7b
commit
ecbc9e989f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user