CIFS: Fix missing nls unload in smb2_reconnect()
authorPavel Shilovsky <pshilov@microsoft.com>
Tue, 29 Nov 2016 19:30:58 +0000 (11:30 -0800)
committerPavel Shilovsky <pshilov@microsoft.com>
Mon, 5 Dec 2016 19:08:40 +0000 (11:08 -0800)
Cc: Stable <stable@vger.kernel.org>
Acked-by: Sachin Prabhu <sprabhu@redhat.com>
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
fs/cifs/smb2pdu.c

index 5ca5ea4..730d57b 100644 (file)
@@ -280,7 +280,7 @@ out:
        case SMB2_CHANGE_NOTIFY:
        case SMB2_QUERY_INFO:
        case SMB2_SET_INFO:
-               return -EAGAIN;
+               rc = -EAGAIN;
        }
        unload_nls(nls_codepage);
        return rc;