Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751360AbeACV6m (ORCPT + 1 other); Wed, 3 Jan 2018 16:58:42 -0500 Received: from mail-wm0-f49.google.com ([74.125.82.49]:40343 "EHLO mail-wm0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750979AbeACV6k (ORCPT ); Wed, 3 Jan 2018 16:58:40 -0500 X-Google-Smtp-Source: ACJfBosj/6KE1vjkWr0sK2jVFukPf1WjgvEQDQsDFLN7Uz4uHzNr8Ul0LWCnSaCU+BR9dzKcq/X6/w== Message-ID: <1515016712.131759.0.camel@gmail.com> Subject: Re: bonding: Delete an error message for a failed memory allocation in bond_update_slave_arr() From: Eric Dumazet To: Mahesh Bandewar =?UTF-8?Q?=28=E0=A4=AE=E0=A4=B9=E0=A5=87=E0=A4=B6_?= =?UTF-8?Q?=E0=A4=AC=E0=A4=82=E0=A4=A1=E0=A5=87=E0=A4=B5=E0=A4=BE?= =?UTF-8?Q?=E0=A4=B0=29?= , SF Markus Elfring Cc: linux-netdev , Andy Gospodarek , Jay Vosburgh , Veaceslav Falico , LKML , kernel-janitors@vger.kernel.org Date: Wed, 03 Jan 2018 13:58:32 -0800 In-Reply-To: References: <6cdc726b-82bc-85b6-393b-0e2002c19341@users.sourceforge.net> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.22.6-1+deb9u1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: On Wed, 2018-01-03 at 11:28 -0800, Mahesh Bandewar (महेश बंडेवार) wrote: > On Wed, Jan 3, 2018 at 12:45 AM, SF Markus Elfring > wrote: > > > > Omit an extra message for a memory allocation failure in this function. > > > > > > > > This issue was detected by using the Coccinelle software. > > > > > > > > > > What is the issue with this message? > > > > * Is it redundant? > > > > * Would a Linux allocation failure report be already sufficient here? > > > > If you see 8 out of 9 call sites in this file ignore the return value. > This message in the log could give a clue when debugging. Unless it's > spamming it's not harmful, or is it? A failed kzalloc() would already give a complete stack trace. Really the pr_err() adds no value here.