From patchwork Wed Nov 30 00:56:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Shilovskiy X-Patchwork-Id: 9453491 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7978760235 for ; Wed, 30 Nov 2016 02:31:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 635602818E for ; Wed, 30 Nov 2016 02:31:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5815E2833B; Wed, 30 Nov 2016 02:31:03 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E50642818E for ; Wed, 30 Nov 2016 02:31:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753735AbcK3CbC (ORCPT ); Tue, 29 Nov 2016 21:31:02 -0500 Received: from mail-co1nam03on0100.outbound.protection.outlook.com ([104.47.40.100]:45367 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752099AbcK3CbB (ORCPT ); Tue, 29 Nov 2016 21:31:01 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=KpklWV0cep6+gknmp7YSZUgtwOqj0a76QIZZMUA7W/w=; b=AOmMcc8tOM7hb6h96HKnnCb0XlX79aW1jtB+o3lHuR+B7diXWHep/fl+ThBmQLtsss+DyRr037y/c7CHErg8f2ACTER+EbqNJgrSSAHV1n6+LKqROcjlMTzaEnWyjCnwpKuwS5Nqw1s7NUWI369umnmGu8togeGLvWBn/EuQY5I= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=pshilov@microsoft.com; Received: from ubuntu-vm.corp.microsoft.com (2001:4898:80e8::63b) by BN6PR03MB2546.namprd03.prod.outlook.com (10.173.142.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.747.10; Wed, 30 Nov 2016 00:57:04 +0000 From: Pavel Shilovsky To: Subject: [PATCH 2/5] CIFS: Fix missing nls unload in smb2_reconnect() Date: Tue, 29 Nov 2016 16:56:53 -0800 Message-ID: <1480467416-13636-3-git-send-email-pshilov@microsoft.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1480467416-13636-1-git-send-email-pshilov@microsoft.com> References: <1480467416-13636-1-git-send-email-pshilov@microsoft.com> MIME-Version: 1.0 X-Originating-IP: [2001:4898:80e8::63b] X-ClientProxiedBy: CY4PR08CA0032.namprd08.prod.outlook.com (10.173.247.146) To BN6PR03MB2546.namprd03.prod.outlook.com (10.173.142.149) X-MS-Office365-Filtering-Correlation-Id: 7a4d3683-c4f2-4cc9-d703-08d418bbcd77 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN6PR03MB2546; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2546; 3:QQhMT1kQxIP0PfWOOKBZSMwXN/1QzRq263bz76HrP+uVrOVhn+tXczEKSefpAzTz27OYQ3fdXLtCSTeFfOKb7/xSotRFD8R8faqsnh22oIvz0O3ABk0PQhYqLf94PzDYFpBoMougBevLWBfEyX4ePhSL5WSI2RtMPmoslVmW0fJ8hGo2wBHamFp/VK/aH+kUYobHoYbjSKUxBtz3zVvR+sNf8b7D41VtAu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zDIGgLsgAPXboCsHlsYv5Ph6LEsT0Pte75Et4JtLOkrUOV6AhPrF6qUGFCx5afzG3PQNtAeD5rbTI0lu37SYpOXflXbDxIV5ILSEWmtCn7q3THBuz+kPpGWN0xcvikn47NGCpf9tFxBEBvAkS2Zz3PJdRor9c0rjJoYP3bBVI=; 20:4tffZY7PFo7yhcydigaatRuSKMxqSb822GRqWuNePrCkCkYK0nJkJzfmglD1K6UUnynrPD4+dtikbi/j795wrtDdnC/Rt5YV/KG11y7O77mo8t48i/uZuxVkKUARKf901KoUcYpczKsN1xO03169o7QSNy+dvMlU9lo0UV0iVkqNR5yE+71YonWtwna6o6NI6hkGKRBo5Yxarjlk1M3QmorrzROETZHlULXCLBKd221ItEWeqiPkXdr/XY1LZvGQ7sa1dzR6dtVquEtbpxuRU+5xybkMvq68JK571jO2fRJ26SPoc08vfWlTHWHuhduBIipqXO2OoRiXkbPz+rBpbbz4vAb6pqH+SreY6OK+C7ZnUdInNASKOhm0CB/tEyVfnIhnsRYvWds7JW3Ub45zkgcJ4gy92zS1e/LGbII2WmIA5UpeAJeHTMdIPpla6uED+XhEBxZi/POvQHfXs1r/EBLNcePvXaR+4W58dBOzPeD08o0hPewFkQIhaK6HkPl9 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(9452136761055); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6041248)(20161123560025)(20161123558021)(20161123564025)(20161123562025)(20161123555025)(6072148)(6047074); SRVR:BN6PR03MB2546; BCL:0; PCL:0; RULEID:; SRVR:BN6PR03MB2546; X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2546; 4:6pN4vcy0N+tRQBCUSpN1tu4n0y04PyEp5Y1l/tNeUhtWisqr1YlAjj4Ox1LmtDhgNSZfzJMrwrjb07BdkCCrsyVBhXSCNmgLYHWZXygyrlrmRWR/xpbAMatqD5Ob5R5+DepGVwlYjiSLTgGOkvURy70q7d2kw5iYv5JsJMbfrE37U9h1pxfOt5UTXwm5rIFlXbrZsK4rhn0JNfVk/J+qPW518i17TSI6O+zfE7k0rUPFBFRWPA0uAw54P8czlwZe/HlxmwrIiwXPIXONsUwDyj0hBCpAJa1WC/1vMbB8BG9tyhmeb03Ewo8UGGN9nyAE6E+qe4RM4MW67sUFc73RjT+00InBoOAscMKqbX6Gte9phSObz3J6po5Hi5IR+huBWA5ZcA48j6RLaEYqKDEfVmpj9Gh7q1tX/YmdS7g6eL2XBpd7mxVXnc803u3noRwPg2Uga5QpZPGFoPrqSdHupxSRjeJxQrOno67W8r9CJ2PxNZdZSN8T6J/NZ7RCcS6ic/0lFkUYEbhISq9NOvwct7/U2EkKz+qRQI4wmGeAakKskoFF0E6JyHSEjCYFpGwicffJbieUhyUJkjqcAi7nxpEmcNKPNH7dZlcrVSav52TtJTa9vLd93hSJWav9hdzHnxDaPwT+8kIVFJZV4+wjUj1I6ibc+GxqT6JzhkiXfhNspcNuTDt/War7FU71ussa X-Forefront-PRVS: 0142F22657 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(199003)(189002)(6486002)(2351001)(450100001)(5005710100001)(733004)(5660300001)(50226002)(50466002)(81156014)(81166006)(7736002)(8676002)(7846002)(39450400002)(5003940100001)(36756003)(107886002)(10290500002)(110136003)(39410400001)(42186005)(86612001)(68736007)(105586002)(6116002)(6916009)(33646002)(101416001)(2950100002)(189998001)(106356001)(305945005)(92566002)(38730400001)(6666003)(2906002)(50986999)(97736004)(48376002)(47776003)(10090500001)(76176999)(86362001); DIR:OUT; SFP:1102; SCL:1; SRVR:BN6PR03MB2546; H:ubuntu-vm.corp.microsoft.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN6PR03MB2546; 23:LuYY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4Jrgo0yjUMZBiEONkgstYDjDzjj2xo4+3XztujN0yHrmAI60Rb9MngF9GSzLA=; 24:Ucik41nKcAbpzdK2twVc18d5HDgrYqTJWex/5rLUOq5eUR+BqKorftD9XxoH128TayPbYAXHJEs0LijNObdhxt2JIr8LJ3XZ6Lj7UWZwxQU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR03MB2546; 7:C3wZu2AtGIuWE9xYxAI3VWfhfAzs+kbJYWiZ8gfHyP24e94q0MsEswZLv5l3cvvHGDKQudOH8ObFQfPBDwf/xjRSGNhgBcbctXjrGQgfnZH5vZ5GeKH0H/T1btz+1J445aot0/Zw3kMt4KsVSU1SGqDv0TekMRqeqQhbSVVAQONelKzxlzZvbuOugV3AgFZCR9zI3u3pnETJ9PhbJHEdUNsKn6AlMokBuqsElET3fEcRjfkKhfmL/uNZSZLJsH36XNR6dhVPUAjNAcGnUmzu638e6N4MMWxuDmELcuUXF2ljIvJ6c/y2ZxNEsPt2kXLS1N0DTIw5gG4knAwOm7Xasx5sriPZ+8te561MioOGM4bzeU0c6C5fZ1IbQemlZE6+Qd7D4XoestlMU02LtRQMa4owHR+DHv4iYiUAYk4lYp6ik56xdZNOXpEL66Cnmhlu3B0YJkv+cPCYcOqlzDNusg== X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Nov 2016 00:57:04.8864 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR03MB2546 Sender: linux-cifs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Cc: Stable Signed-off-by: Pavel Shilovsky Acked-by: Sachin Prabhu --- fs/cifs/smb2pdu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c index 5ca5ea46..730d57b 100644 --- a/fs/cifs/smb2pdu.c +++ b/fs/cifs/smb2pdu.c @@ -280,7 +280,7 @@ smb2_reconnect(__le16 smb2_command, struct cifs_tcon *tcon) case SMB2_CHANGE_NOTIFY: case SMB2_QUERY_INFO: case SMB2_SET_INFO: - return -EAGAIN; + rc = -EAGAIN; } unload_nls(nls_codepage); return rc;