Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp906772rwb; Tue, 4 Oct 2022 12:20:38 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7iVcU4yTFP4HbbJChIERbyqspVxTeh7a9YlF7biQHWDCKBqDQawiMCdPIf3zJLnZY8CMmL X-Received: by 2002:a17:907:72d3:b0:78d:2153:648a with SMTP id du19-20020a17090772d300b0078d2153648amr1816747ejc.513.1664911238026; Tue, 04 Oct 2022 12:20:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664911238; cv=none; d=google.com; s=arc-20160816; b=qhyqPZitYyaC0XsMK5AEtW7RFTjQaoOzHViHvCmlaC2d6YlU/A1VZJUb+iRDcwh623 LfaMEQS5C+IoAL9cKXE3XG35CIQR/eZl283x6w03EfjdF12/E3Mz7iXXzi3+/lZoZMbo 5s0w0qrOMbVsnmjz7udk0mQ41A6Cvow8fiqUpFQ68kicfAfaar02mM1IdAjS9/veRU3v KFo2gR5Tv8EIYUnstTi4P7OTTsoIS7GJDpw5Wt+DyDoiHtg4SONQg9tDP8FbmNnuYitD EwleiaJrUIvH7yD0SCwqX/L8TWrwEWWJ+csUWp7ROgPsGufCp7YBUnU6oj7hHyNIXQ73 BPow== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :in-reply-to:subject:cc:to:from:dkim-signature; bh=cvV5XO3ylK5FK1gANSWSwikc0pVYpXVdsUgPuT78aGo=; b=IlPDGwnQaj40UDDvyMV76QLcp9xlLk1oyyuBD7OyYPV0eZRnWXHFQUkQpqv5u6L/6a QxEEnYb0acGoGdAGyboI//xz3E62hohb4GNMasxX+1oAEJifYlytWHknV4G+5X3jf4mN E/eSZLxT5zdc7hFs7hmW/sz+xwUIkJJ1qxWg3vHgZ7ikcL+qR/4co/8+3VJfV6HzCJJ0 SqDvSXTVjuY5LrgI4T9/wx9BVSa73XsqyubYEj0hzZlOXYJVN2kJPVjj7d57ZOFjR+Zq Q0SNIXGu+dyNoqurz7rDvqsSJkV5JuXqBgywH2V6OiqLEQ7pnXimxRIX9WtBTMaeKUkL Qzow== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cjr.nz header.s=dkim header.b=a3q3LfgY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cjr.nz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id hp16-20020a1709073e1000b0078a802cce5dsi7876422ejc.592.2022.10.04.12.20.11; Tue, 04 Oct 2022 12:20:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@cjr.nz header.s=dkim header.b=a3q3LfgY; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cjr.nz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229643AbiJDTJA (ORCPT + 99 others); Tue, 4 Oct 2022 15:09:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51178 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229468AbiJDTI4 (ORCPT ); Tue, 4 Oct 2022 15:08:56 -0400 Received: from mx.cjr.nz (mx.cjr.nz [51.158.111.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFF845A2FD; Tue, 4 Oct 2022 12:08:55 -0700 (PDT) Received: from authenticated-user (mx.cjr.nz [51.158.111.142]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pc) by mx.cjr.nz (Postfix) with ESMTPSA id 6487080B8A; Tue, 4 Oct 2022 19:00:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cjr.nz; s=dkim; t=1664910050; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=cvV5XO3ylK5FK1gANSWSwikc0pVYpXVdsUgPuT78aGo=; b=a3q3LfgY8Yo+sVRT9GjdQDSTwwwPwiqdHpRUvYQ6jJp9vJEnReR++sGUTQye6hXBl37ezf PinXzTjZ5dYJN1Q1Q8H6gEPDwukEZIK0+XE7wUtV1Ao0h7dpL1iNBjmbXffkMOuTMk2tiL wDc5sHGkNLPBrPBO2THnYC6Eq7W5rlmOeJKylEQAPIJSs3eHoE+4QfkJ1oEkVAPd3c+0J9 qMtErMk3G4nU+a7KdlrWeM+q/h4eeTZswV0i3jLu+ySRK1T6f+M0gIyTNSPsOrxdBM0oNQ 53zVaJ6M/3RykpuPh2NKb39YpMGbQe+AYG8e2YvfyevJ6q7DfkOwVgbqiFkbhQ== From: Paulo Alcantara To: Muhammad Usama Anjum , Steve French , Ronnie Sahlberg , Shyam Prasad N , Tom Talpey Cc: Muhammad Usama Anjum , kernel@collabora.com, kernel-janitors@vger.kernel.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/2] cifs: check returned value for error In-Reply-To: <20221004062333.416225-2-usama.anjum@collabora.com> References: <20221004062333.416225-1-usama.anjum@collabora.com> <20221004062333.416225-2-usama.anjum@collabora.com> Date: Tue, 04 Oct 2022 16:01:40 -0300 Message-ID: <87lepv4dm3.fsf@cjr.nz> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Muhammad Usama Anjum writes: > smb311_decode_neg_context() can return error. Its return value should be > checked for errors. > > Signed-off-by: Muhammad Usama Anjum > --- > fs/cifs/smb2pdu.c | 7 +++++-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c > index 2bf43c892ae6..c6e37352dbe1 100644 This patch doesn't apply in Steve's for-next branch[1]. If it still makes sense, please rebase and resend. [1] git://git.samba.org/sfrench/cifs-2.6.git