@@ -100,7 +100,7 @@ static const struct status_to_posix_error smb2_error_map_table[] = {
{DBG_EXCEPTION_HANDLED, -EIO, "DBG_EXCEPTION_HANDLED"},
{DBG_CONTINUE, -EIO, "DBG_CONTINUE"},
{STATUS_FLT_IO_COMPLETE, -EIO, "STATUS_FLT_IO_COMPLETE"},
- {STATUS_OBJECT_NAME_EXISTS, -EIO, "STATUS_OBJECT_NAME_EXISTS"},
+ {STATUS_OBJECT_NAME_EXISTS, -EEXIST, "STATUS_OBJECT_NAME_EXISTS"},
{STATUS_THREAD_WAS_SUSPENDED, -EIO, "STATUS_THREAD_WAS_SUSPENDED"},
{STATUS_WORKING_SET_LIMIT_RANGE, -EIO,
"STATUS_WORKING_SET_LIMIT_RANGE"},
Reported-by: Richard Sharpe <realrichardsharpe@gmail.com> Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> --- fs/cifs/smb2maperror.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)