From patchwork Mon Dec 5 21:11:08 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Pavel Shilovskiy X-Patchwork-Id: 9461503 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 F2ED560231 for ; Mon, 5 Dec 2016 21:11:49 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EAEE628066 for ; Mon, 5 Dec 2016 21:11:49 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DFCC82807E; Mon, 5 Dec 2016 21:11:49 +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 8FF9F28066 for ; Mon, 5 Dec 2016 21:11:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752245AbcLEVLt (ORCPT ); Mon, 5 Dec 2016 16:11:49 -0500 Received: from mail-by2nam01on0128.outbound.protection.outlook.com ([104.47.34.128]:62696 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751804AbcLEVLr (ORCPT ); Mon, 5 Dec 2016 16:11:47 -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=/FIY9Kus4NLTHUpT2BZO52tsc6Qt2bQ1qJ1m61BJQbw=; b=Rk3MJ76R2+xfEv7Rs7/RzbjUbYFZyyd+iVCfulzfqpb3G0MLwqRwQF9bu7xVZNy9YMpDckLF3aq4EaT1EdF35iir1ekcGjCsy5mV4nW1m7pDsVzoqwE0Y6YaYwKUC4Z1On72C9qopTOAGlqnaS3ObL0onGvy9VCczcITBK4MliY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=pshilov@microsoft.com; Received: from ubuntu-vm.corp.microsoft.com (2001:4898:80e8:a::63b) by MWHPR03MB2557.namprd03.prod.outlook.com (10.168.206.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.747.13; Mon, 5 Dec 2016 21:11:39 +0000 From: Pavel Shilovsky To: linux-cifs@vger.kernel.org Subject: [PATCH v2 2/5] CIFS: Fix missing nls unload in smb2_reconnect() Date: Mon, 5 Dec 2016 13:11:08 -0800 Message-Id: <1480972271-57692-3-git-send-email-pshilov@microsoft.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1480972271-57692-1-git-send-email-pshilov@microsoft.com> References: <1480972271-57692-1-git-send-email-pshilov@microsoft.com> MIME-Version: 1.0 X-Originating-IP: [2001:4898:80e8:a::63b] X-ClientProxiedBy: BY2PR06CA0069.namprd06.prod.outlook.com (10.166.106.165) To MWHPR03MB2557.namprd03.prod.outlook.com (10.168.206.19) X-MS-Office365-Filtering-Correlation-Id: 87c07ab1-5c74-49d9-26e5-08d41d534e5e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:MWHPR03MB2557; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2557; 3:9kPK+ahYYh1GxYOZgO4eSO6/l/uBP/HEZPmWd4jScZNRvu9jZHUjxqz5nf6rcI9pIn1nsx/j6U6c/LqVQ3PX/VU4FBNSqeRV01ZqnfdbA+khU9hefGGdX02RLs/48RmhQv0xzXySXdN0/gFHJdJdv4yNONZh4i50x/DNkcb6KuGSsG77iu6Ki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Oz/hTsmV1vcFPqd+h7AAfeI7fB5mEbUyR5kgq5fLYGjGDLCJjTcAaxh2SN1rmgKsqSTnDscQ/OYvBLAR2KDLqk/nLHXT7LPGb3WwiSEjqszlP2H1jc+63IS0P1pQyWWSL6q/T2cAidBVYdCh63tnFZqenaKiFk4JBmo6vfXfxSdPcyvN9IYp84G/Ib8dN2KJoA0BRyo+VEqW5kMVJq1xG9sRzUTsKcpZwi4MULtqyuvFah2M/yGkhsjoBuBAdYPvK/C1fGRRdLo7IjdZgCHNKP8UNSgjnJmwC+pJX5TCiIIEZGbOMrwwVvKpWvwey9cP5UC4tyAV 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)(8121501046)(5005006)(10201501046)(3002001)(6055026)(6041248)(20161123558021)(20161123562025)(20161123564025)(20161123560025)(20161123555025)(6047074)(6072148); SRVR:MWHPR03MB2557; BCL:0; PCL:0; RULEID:; SRVR:MWHPR03MB2557; X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2557; 4:vmTlcfPTaXzovCjHGT8pJVRnzct1cxdICoVn3K6P+j467XyKHJ7err7/Jwbj0NUXiqXGCInDvlw4kjh0t6m4yCQyRD0argM5+v+4U8oc1JPB4d4Dl0mzbnuZjNeX/aAs3Dh6hMoPjEEPUkI7OZfFgq6vixZACjXKN+5SQpHC9aAlwFNdWKLXdgwh0MCUAQ2oQoxJFGYqYrJ3SYXidEJP29vdaPyf07jwSoo/rzVyfICCWKsTIELaB+RKfMnRzDS/AUHXQgtmTJzp2pXZ13/vYk9FL9IK8GWVmnDSR31nKHdTQbAAtvTwMdQWUT++XHR+xDvqqENXoxcONUE0IVtctAhybRj2SQdPf+NVMkYUHMfAg/x4CuqAm4eobA5TVFGIROhnA68DqT+00s1IJNCHwt6Pp7f7tvceTu/vgoPTv44qrkcqXwfMhNuC7BfNbHqTu2FKWpZFqNd4n/RhuDpccRqMyaYI92bxiwJZEPjQ4iM6gyxMOM+KUb0DwGxPSqdCkmwI3jRrkabZa7kUyyKcUG0cZ0VJQtGXHU12+Jr/S0mtk8VfD+xSb344KD1sNyOf+LuoBHabC1q4ofOKla/PfwJJSBszi41o9LVacr13dEqSKZGGIQdz+Qx1jBzCwUVfhu1CWi7ovds8xzzvWgm8JHIPWCBS6ev0TemrJSIekoKea5A/MYSl0vh+954KPjtB X-Forefront-PRVS: 0147E151B5 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4630300001)(6009001)(7916002)(189002)(199003)(5003940100001)(36756003)(5005710100001)(10290500002)(6116002)(92566002)(450100001)(42186005)(47776003)(5660300001)(105586002)(50986999)(76176999)(68736007)(33646002)(106356001)(39450400002)(50226002)(107886002)(189998001)(10090500001)(2906002)(39850400001)(39840400001)(38730400001)(39860400001)(733004)(8676002)(6486002)(81166006)(2361001)(39410400001)(81156014)(86362001)(305945005)(6916009)(2351001)(48376002)(86612001)(97736004)(101416001)(7736002)(6666003)(7846002)(2950100002)(110136003)(50466002); DIR:OUT; SFP:1102; SCL:1; SRVR:MWHPR03MB2557; H:ubuntu-vm.corp.microsoft.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; MWHPR03MB2557; 23:YMWQAyNck0WbCazU/9sDmgslRASd7ORDeqX3EGJbt?= =?us-ascii?Q?e7ObUIJ8fp4Lz0zw7xD+6R9CXB64q5X8LgfavoOaw2NBElqOtvfWN5ba1uzH?= =?us-ascii?Q?gM2NMiJnCiW2LC1jdeemQCq7ioxc2Zgw0c8GWyFWZ9IXyc7/HbhNiXmQgMtX?= =?us-ascii?Q?+3gG1dgPV3FbhhwDsJ/Jn55HNDYlcsrpQ5Kj0NBT42JX8KLNagv9Eiv7CSki?= =?us-ascii?Q?hSkLSk3j9TBMgoUgOLA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99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR03MB2557; 7:yD3POt7fhLlfsJax1YCi6c61xvafpGmn6jXmBzkCpBeL1peNJzt+Fzt75/EElMdXvAFkpcGeEyAbQMbo+uieesg7qLy2cpQNy9lCv+x7B6D7j3Oj1Sdt2cPilDVjWi/pBSBCMauojEk45e0LliBzbz2cPD6bSeoU/LP67Pm6obIsJBoVdzsRbws5QQPiwtCDqzHwbjUFAtPsp0KByUS4GH7d4ZX0aBn9SbsP6iwole+O/UviMhWtDWYSRLvhfnzfo1bA1tsg8Z2ZKYuSDLqr4DNNKLN8L4oh05vUHW5mBkE7TPpFedzArWw4HMHoTBFZirnp7G8CoMmP2hm/Ph2ttzUXkPqE0j/UAzXZTQQ7/8KAouxYJ1HPkuWSzHYiliGdJu2DkCK/eO080ktxOC0cUuMBZDVYIKuNuTyqCK79BRZqrFiSEF0n10H5eLwHRnDjQhfBaWZxPgDDJmI8Ynbi5A== X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Dec 2016 21:11:39.9065 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR03MB2557 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 Acked-by: Sachin Prabhu Signed-off-by: Pavel Shilovsky --- 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;