[PATCH] cifs: map STATUS_OBJECT_NAME_EXISTS to -EEXIST and not -EIO

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reported-by: Richard Sharpe <realrichardsharpe@xxxxxxxxx>
Signed-off-by: Ronnie Sahlberg <lsahlber@xxxxxxxxxx>
---
 fs/cifs/smb2maperror.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/cifs/smb2maperror.c b/fs/cifs/smb2maperror.c
index 20a2d304c603..f299ffe353b4 100644
--- a/fs/cifs/smb2maperror.c
+++ b/fs/cifs/smb2maperror.c
@@ -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"},
-- 
2.13.6




[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux