Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3107097pxj; Mon, 7 Jun 2021 02:25:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyuU6HFOyp5ZWQigZJ893BtOBVZhW+gtQftqdVbhDnL/bcRpCp5R07JtvWCQCSkG8w/hOH5 X-Received: by 2002:a05:6402:3198:: with SMTP id di24mr18428591edb.244.1623057903207; Mon, 07 Jun 2021 02:25:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623057903; cv=none; d=google.com; s=arc-20160816; b=hQWm4gdmsDaH/A75IKyY0OUhAvLSgooIrIn/t0Gl2GKRIVjAdSUxOIaPssMaRDPIl/ EOvwK8l95Gv0/N2nIxYzQATCGwCdKQPnsMGkZxPYlYqdedZjZPqWbMH0JONjKzuAddsN GYE7jIzF1eBxkiJOLQwCd6rHPGb0J3Kq0WI5eIpCp72pF+lJJNiar+mTxNr1Me2igJmE OEs0SrpcRuRfw5+npLbz6klL5sDKPZeE3mU6mI4c0cSi6iyaLkPj3k66TPkIIobhRUz6 YjFBsgRagLdca+JdYEz+uvjk/7pId1a+6ptz02CfLaXcrqDZTqKZaxK24cp+ZEsGYhkt ei3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=dC02K+KY7yBCjzVgpNEbr23NoB+N49vjRdEy3PxKPJY=; b=Hsw2hoj06ZLCW9sSdTRiGwN5RTtfo4J+pOz4H/VBN9PffmPPgEKZi4QxYt1dwkgKHD yaKkGyJC/S4uHtlJfTQm64agnnr1po73A+l4Hy/93us562JF77DcGDQEEoc3rsCQ+I4v 8SblhaEyd961NNHYVU8QS+vkg+MOB33VRq15inscngCy3MSIzJYlG20sZPBxwLGP4XTN ZTp77b3Ad2yu+u1ZUF6qfhCqzE1ySHhSbiszLl7KXyeMw54Ez+gO7ozTKafv0auvrhjq xKT4jIZjXGQcQrVgHzWrqpU2qMtbfaYUCvH0iKwQn+zpUjI53M6bu2FzP1ovCLC0YiVf MLwQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bpt7xkkv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z26si11277283eje.396.2021.06.07.02.24.39; Mon, 07 Jun 2021 02:25:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=bpt7xkkv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230320AbhFGJZQ (ORCPT + 99 others); Mon, 7 Jun 2021 05:25:16 -0400 Received: from mail.kernel.org ([198.145.29.99]:42596 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230127AbhFGJZP (ORCPT ); Mon, 7 Jun 2021 05:25:15 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 6705860232; Mon, 7 Jun 2021 09:23:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1623057805; bh=A4zAYvAyANbFqhltJKq2zyoNqrB3rlfLtGKwOWMjzTs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=bpt7xkkvmewiElQQWNxsRbWGWMDyRcMFFSBuUq7jYs9pNInxR1c8kEUT6qBYhOB5b iEkhfZbmpWeJgyPPhVfFHkqG51sWeQdv17qm5qesWti+UnV29W55AeiV2sA9fM5F0g MYaya5iNBq8fBy4KzX12+khVuzgl6OXwhWa9tLbs= Date: Mon, 7 Jun 2021 11:23:22 +0200 From: Greg Kroah-Hartman To: Dan Carpenter Cc: Wenli Looi , linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: rtl8723bs: Fix uninitialized variable Message-ID: References: <20210606070021.116284-1-wlooi@ucalgary.ca> <20210607083316.GO1955@kadam> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210607083316.GO1955@kadam> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 07, 2021 at 11:33:17AM +0300, Dan Carpenter wrote: > Greg asked about struct holes and the answer is "= {}" will zero out > struct holes but it's not important in this case. The "= {}" is a GCC > extension for zeroing structs and it's not part of the C standard. > The struct has a kernel pointer in it so we had better not be shairing > it to user space. I thought we proved that "= {}" will _NOT_ zero out holes in structures. Or did we really prove that? I can't remember now, do you? thanks, greg k-h