From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03FCFC4727F for ; Tue, 29 Sep 2020 13:16:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 977A320848 for ; Tue, 29 Sep 2020 13:16:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="ahMKmLaY" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728391AbgI2NQk (ORCPT ); Tue, 29 Sep 2020 09:16:40 -0400 Received: from mx2.suse.de ([195.135.220.15]:59828 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728366AbgI2NQk (ORCPT ); Tue, 29 Sep 2020 09:16:40 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1601385399; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=xRTW9Z4Ys1JaqulItVcwv9t5PYzQzYzDLBFcXkHtstk=; b=ahMKmLaY6X8+DVYbRtGh3GwDv/RvnbNOLY7G5DRQDVQ4qcfg2UHuu92cXQ3lZ7xJ6UmyXk N2N6e/518TETN+rb7eBPuItpvfh1F+m/XYdQZ9/CQQ0iucvneD1pgM42Glr6JysNBrjlfm myV6lrsVKpDyZeGll1p1BmWbvcp8stM= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 0AEFEAD21; Tue, 29 Sep 2020 13:16:39 +0000 (UTC) From: =?utf-8?Q?Aur=C3=A9lien?= Aptel To: Shyam Prasad N , Steve French , CIFS , sribhat.msa@outlook.com, rohiths.msft@gmail.com Subject: Re: [PATCH] cifs: Return the appropriate error in cifs_sb_tlink instead of a generic error. In-Reply-To: References: Date: Tue, 29 Sep 2020 15:16:38 +0200 Message-ID: <87blhok9jd.fsf@suse.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org Shyam Prasad N writes: > One of the cases where this behaviour is confusing is where a > new tcon needs to be constructed, but it fails due to > expired keys. cifs_construct_tcon then returns ENOKEY, > but we end up returning a EACCES to the user. > > Signed-off-by: Shyam Prasad N LGTM Reviewed-by: Aurelien Aptel Cheers, --=20 Aur=C3=A9lien Aptel / SUSE Labs Samba Team GPG: 1839 CB5F 9F5B FB9B AA97 8C99 03C8 A49B 521B D5D3 SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 N=C3=BCrnberg, DE GF: Felix Imend=C3=B6rffer, Mary Higgins, Sri Rasiah HRB 247165 (AG M=C3=BC= nchen)