From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F62D7B for ; Tue, 26 Apr 2022 12:12:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 33922C385A0; Tue, 26 Apr 2022 12:12:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650975161; bh=/nHfga5ufwcLpsGw6q0TSeoGPCo0q9qUdzsjCKj9DIk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oUywWPRMNTdwDZokT8Lp1pLoMeCcUuTdcfwX7O8bsAFDdrLDgWB6SWIFULLq4vFNa CUEb0dQHhUZkUOQm3D+QTOrHe2ubfchfab8bvrSjV8NvNOq7vLnWx5vEDCYLo46UCO XLy81qmvD+oMaCXn3mMKXvuZFjqKZWcMRAsKbw1U= Date: Tue, 26 Apr 2022 14:12:38 +0200 From: Greg KH To: Tom Rix Cc: jirislaby@kernel.org, nathan@kernel.org, ndesaulniers@google.com, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] tty: n_gsm: return -EINVAL when adaption is not supported Message-ID: References: <20220426120554.1120585-1-trix@redhat.com> Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220426120554.1120585-1-trix@redhat.com> On Tue, Apr 26, 2022 at 08:05:54AM -0400, Tom Rix wrote: > The clang build fails with > n_gsm.c:940:13: error: variable 'size' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized] > } else if (dlci->adaption == 2) { > ^~~~~~~~~~~~~~~~~~~ > > The else should return an error, so return -EINVAL. > > Signed-off-by: Tom Rix What commit id does this fix? Any reason you didn't cc: the author of the recent changes to this code? Is this the same issue that 0-day reported? thanks, greg k-h