CIFS: Fix missing nls unload in smb2_reconnect()
authorPavel Shilovsky <pshilov@microsoft.com>
Tue, 29 Nov 2016 19:30:58 +0000 (11:30 -0800)
committerWilly Tarreau <w@1wt.eu>
Tue, 20 Jun 2017 06:02:59 +0000 (08:02 +0200)
commit 4772c79599564bd08ee6682715a7d3516f67433f upstream.

Acked-by: Sachin Prabhu <sprabhu@redhat.com>
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Willy Tarreau <w@1wt.eu>
fs/cifs/smb2pdu.c

index 133067cfb3f9b1d37a5775c8016bc1e4f8ea2c83..886ce5c2f2a1504711936ac2b08d5b5ef255a2ec 100644 (file)
@@ -254,7 +254,7 @@ out:
        case SMB2_CHANGE_NOTIFY:
        case SMB2_QUERY_INFO:
        case SMB2_SET_INFO:
-               return -EAGAIN;
+               rc = -EAGAIN;
        }
        unload_nls(nls_codepage);
        return rc;