From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Subject: Re: bonding: Completion of error handling around bond_update_slave_arr() Date: Thu, 4 Jan 2018 22:41:08 +0100 Message-ID: <892dbd56-ec95-8244-540a-cbd53db62ec7@users.sourceforge.net> References: <6cdc726b-82bc-85b6-393b-0e2002c19341@users.sourceforge.net> <4af2b714-245a-0f0d-5982-818d5f81cade@users.sourceforge.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Cc: Andy Gospodarek , Jay Vosburgh , Veaceslav Falico , LKML , kernel-janitors@vger.kernel.org To: =?UTF-8?B?TWFoZXNoIEJhbmRld2FyICjgpK7gpLngpYfgpLYg4KSs4KSC4KSh4KWH4KS1?= =?UTF-8?B?4KS+4KSwKQ==?= , linux-netdev Return-path: Received: from mout.web.de ([212.227.17.12]:60511 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751952AbeADVlO (ORCPT ); Thu, 4 Jan 2018 16:41:14 -0500 In-Reply-To: Content-Language: en-GB Sender: netdev-owner@vger.kernel.org List-ID: >>> If you see 8 out of 9 call sites in this file ignore the return value. >> >> How do you think about to fix error detection and corresponding >> exception handling then? >> > If I understand your question correctly - not having memory is not a > correctable error I am unsure if it would be feasible to retry memory allocations for this software module under other circumstances. > and hence there are consequences. Could one consequence be to let the error code “-ENOMEM” move through the function call hierarchy? Regards, Markus