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=-15.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham 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 90465C4338F for ; Mon, 26 Jul 2021 22:10:01 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6CEFB60F59 for ; Mon, 26 Jul 2021 22:10:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233221AbhGZV3c (ORCPT ); Mon, 26 Jul 2021 17:29:32 -0400 Received: from mx.cjr.nz ([51.158.111.142]:5594 "EHLO mx.cjr.nz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232875AbhGZV3c (ORCPT ); Mon, 26 Jul 2021 17:29:32 -0400 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 C47BF807A3; Mon, 26 Jul 2021 22:09:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cjr.nz; s=dkim; t=1627337399; 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=o3r8oVjRtR44tqw2N+dCH1FWPiJ5zilIyu6rtRHUiN4=; b=I4d0pnS5TB3gwxfBOzSC8kBue4AGu7EyasQpvYPmqtloykbJlaYfVrSv64b2Ov+4UfCntn 6dWG9WOd/3L2VhbEzOtlqxpMSnTMKBpL21GH6zXIyCJw5L9osviOFciRIs2BR5TxA7iHjB ToPXdjD0bLrb+P2MgHVRUL26/IuIhXgTy5smskvBqVnvJ5T77GhlFP5ZBGoN5nYUABYVfy RbnTdkfxv2GeoUdjxExoLqPolSKEEZBr+CrNeAXJP0H+t3rnrW8uCi+ZCuPY4D1tGT4jNd JNuvCPZKgUrSFzbK2FurOV/qanFbMqEz3cGeeY+H/Zj87eTsMsMe3gRrPS0zlg== From: Paulo Alcantara To: Steve French , CIFS Cc: LKML , ronnie sahlberg Subject: Re: [PATCH][SMB3] fix static analysis warning in smb3_simple_fallocate_write_range In-Reply-To: References: Date: Mon, 26 Jul 2021 19:09:54 -0300 Message-ID: <87r1fkn2vh.fsf@cjr.nz> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-cifs@vger.kernel.org Steve French writes: > Clang detected a problem with rc possibly being unitialized > (when length is zero) in a recently added fallocate code path. > > Reported-by: kernel test robot > Signed-off-by: Steve French > > diff --git a/fs/cifs/smb2ops.c b/fs/cifs/smb2ops.c > index 23d6f4d71649..2dfd0d8297eb 100644 > --- a/fs/cifs/smb2ops.c > +++ b/fs/cifs/smb2ops.c Reviewed-by: Paulo Alcantara (SUSE)