From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f45.google.com (mail-wm1-f45.google.com [209.85.128.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 36B281118C for ; Fri, 22 Mar 2024 05:30:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.45 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711085435; cv=none; b=O4lKFz6Z5//KFcKaPWMQdBxpe0S0yWWM3WiwLJBcA14kav0qyKrgUKSDO/CeswkVImu89Uz05YORpxv3CCDnv6aR15cKGanFXY0u/GO9nR8B5hJ+p4t9LOFn9HQgqcWNtvqRTh3G2i9LR4cQcP0GSGB1xj6ED38jxW+MNoqSato= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711085435; c=relaxed/simple; bh=gH5pexmzbUGwNCHZ9PTUYn/hBvXARLC8S6NicdNMIyQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Twz8C/nH7FCEUFkVU/Cc5G1U7dyk99YdgM2BS4VUy0itETsUID4RoMD7NDHLVYZtwpdCV862TAf1SIVBkIOCT6ryRYXp2b93ZKspOrIij26FCGw3OApfWUZ4ajVPOztgW0ACz/dfGYA+K1bNz/eGwJ7RW92owMrE8fSm5ziXVyU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org; spf=pass smtp.mailfrom=linaro.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b=pjzZtlJT; arc=none smtp.client-ip=209.85.128.45 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linaro.org Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linaro.org header.i=@linaro.org header.b="pjzZtlJT" Received: by mail-wm1-f45.google.com with SMTP id 5b1f17b1804b1-414782fac28so5636375e9.1 for ; Thu, 21 Mar 2024 22:30:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1711085431; x=1711690231; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=321mETi/Adac/ZBnxDuN0Y4/HnqrpGTboku9RcY+CYU=; b=pjzZtlJT5WlhO9Ui5ZQAd9bqJUv176W//paUoTCZqRTFkBlzf20OGUuqKWkYu1TOxW yK702v89lw8vrsTshQ+2RHwA/tYKBvefv27s8szJJ3ZZxYBZmzsAeQUeo/bk21nNJzw6 eDIkEoiyQOyflCUZ+mypoqVU/CSqCZV7GtYIJGUMfIoFG1BBCwJugFG1R+xhDMJ4tF4u 9Hra/fHyksrTDX0Y6p0Jed0KJm+Spvj3n5+snkOKqxA3wGc6qNw1N9Ovp94xlYkzw9XI YoUFkClmPOaIg1aMU3QNkoeeS7jEr49kQV+5d7ffp/bug7P+0fK96z69g7PJDZmkFJWG 5+og== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1711085431; x=1711690231; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=321mETi/Adac/ZBnxDuN0Y4/HnqrpGTboku9RcY+CYU=; b=BJEIHZiAE5N67ni0GZZyH24C1O58gtXgkHTFhRRD2VAxU7dMksB0fYZbXAxnI+5/Ma khf7RQ4kl+V3/mpvnu1GiQPk6IdbEjcwalPS3YXVyKmi2iiTQ2ZDXb1106QKbEyi11R8 iIrJHSE3BtqLD62zqSScetTkqoImzpN2M7ByOZqbVJl7aNihadDaFGH1OU2hk7Vq9FUh HfQFvhru8Oh0fZfrP/eaRUsOQsrqTN1iS7OgX8hriX/2d7TPUVdP81Fr99vWTAQ89BR/ KE+53zm8fld/2sPmEcioOOr3nNcs4SwmYaF4vQE0iSiPupY4XS3evtTiDKS8pTWwbGqt B5BQ== X-Forwarded-Encrypted: i=1; AJvYcCXkSJ0SJvqIXFKy0k+ootKqEwzd/KGu6Ra3pyVUhRQVayHY7oW+fcW4ys8RenNYtwBD960EzvU0TgbjQDJ3ic+JFoaK2hak X-Gm-Message-State: AOJu0YyRb1WI0Zs/WXGwYEguVNJZDtJdyupwOrr5TCXTOK6G8OSkt+7M bAGc7XZAn4JY4Rivew/9wNg0UrWaWuQ4/vIIa8DFQ+Z4NfVw6jhOXQQGLL/UQtc= X-Google-Smtp-Source: AGHT+IHkKxlHhdE6WoCQw6vjGFcdk5VzZZM3XWQTSj4P8n78wnFsREbl0RQB8AA7bcd6TncGfFNFEA== X-Received: by 2002:a05:600c:4f89:b0:414:262:df45 with SMTP id n9-20020a05600c4f8900b004140262df45mr764816wmq.32.1711085431191; Thu, 21 Mar 2024 22:30:31 -0700 (PDT) Received: from localhost ([102.222.70.76]) by smtp.gmail.com with ESMTPSA id f9-20020a05600c4e8900b00413e79344b7sm1882713wmq.19.2024.03.21.22.30.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 22:30:30 -0700 (PDT) Date: Fri, 22 Mar 2024 08:30:26 +0300 From: Dan Carpenter To: Julia Lawall Cc: Markus Elfring , Andy Shevchenko , kernel-janitors@vger.kernel.org, netdev@vger.kernel.org, intel-wired-lan@lists.osuosl.org, Maciej Fijalkowski , Przemek Kitszel , Tony Nguyen , LKML , Alexander Lobakin , David Laight , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Jesse Brandeburg , Jiri Pirko , Jonathan Cameron , Kees Cook , Lukasz Czapnik , Paolo Abeni , Pucha Himasekhar Reddy Subject: Re: [PATCH net] ice: Fix freeing uninitialized pointers Message-ID: <1655b591-1259-4d71-8f93-e840b1ccc22e@moroto.mountain> References: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Thu, Mar 21, 2024 at 04:20:09PM -0400, Julia Lawall wrote: > Does one prefer an initialization of null at the top of the function > or an initialization to a meaningful value in the middle of the > function? I prefer at the top, but it will be interesting to see where the consensus is. Kent Overstreet has said we should move away from declarations at the top generally. I don't know if anyone else agrees with him though. regards, dan carpenter