Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753435AbeADVlQ (ORCPT + 1 other); Thu, 4 Jan 2018 16:41:16 -0500 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 Subject: Re: bonding: Completion of error handling around bond_update_slave_arr() To: =?UTF-8?B?TWFoZXNoIEJhbmRld2FyICjgpK7gpLngpYfgpLYg4KSs4KSC4KSh4KWH4KS1?= =?UTF-8?B?4KS+4KSwKQ==?= , linux-netdev Cc: Andy Gospodarek , Jay Vosburgh , Veaceslav Falico , LKML , kernel-janitors@vger.kernel.org References: <6cdc726b-82bc-85b6-393b-0e2002c19341@users.sourceforge.net> <4af2b714-245a-0f0d-5982-818d5f81cade@users.sourceforge.net> From: SF Markus Elfring Message-ID: <892dbd56-ec95-8244-540a-cbd53db62ec7@users.sourceforge.net> Date: Thu, 4 Jan 2018 22:41:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:dPrFervxnszRnh86XDA7SwUueboccl4YxWjCiDVdQfjU/jLOmnw SR3mX7ncK70WVkVfOR9gDDYljePNYRN4xC1FYf7a82jjix+wr2YxksZNUBVfSBXq0CP7Nld 1mP+hQhTNMLb9OsQKDfYVWPOXZjmgXPTlZU86WmdjK4Ws1bcp67SbtWluSFG9l/asXMD/rx NqovxFFrUnWxAFybqLeZg== X-UI-Out-Filterresults: notjunk:1;V01:K0:xODoVXQhEv0=:Qj5SBsfwdmzMiv95bq/aNk UYC0t9OgfBnwwDAvVUn9LpFfCXt2YCK2BNTj9P7funagrUoccCf27c0BoMVesnVTTOKOTQsfV vOAPqyfobVWrDzFnrSx+fzFEJEfda8ZP87PZmX1cV37qUxSOArhwLeoSFFI42BuE50//z6usf 62P+in/0mxyUiPhx78rzJqrspVHtl+1pho+S55Yq0HChYXC4qMIHTpPOBDRQuQ6m95zvdk9h+ ksIpy7lU4g0xvZ61ct2TIAKpxE9QnSzVf/KhZSeOSf3Lv8cfdx3YKsUcRRBpgO2vC9IJig+EQ BjhNVFx1luCLwOPWl5hbXCH6hgVEN5UVVrA2oHEQ0ZXscpI55oS9W7wxaLE+6GmTMRipj5rSC kiEz6ArSTE+qF3UdgdEanX5yzz+BZ5k2yLaHlGDixVkEikd4YVpqWp7aeN2CWxwgMotRb0Ees l3qNTHI1uXn93ROA8V+G4BnS/KCANxKHDSWn3UwyntvmLU1mGlhANR71NJviiWDpgcD162ouC DMp2dFnrFKuVLkWp81BhVKCsOOs9k59B0ck30iK7/7Rl1f8GetJu+j6gS7fJ/ERC1zjgQff8b ImoQ9svoJ/zZnBy0pt4t33OYEyDhuOGfw1EPoY2vmxhu0FXS0wAYpSLCBLpulVTB8gH9YFbR0 b5zCslNv7qyGmm4YTmZ2Zl7K2W6rdzFf6ITvqzxndCQt4BXe0iRqYMKy0lj4SowJ9CZhIoNFw rYwLrBSAMkZUEbLkM6K0uMK1g0UWpE93k7cZz+s2KQ/GvSVBSu/GNTG/VpxzDbI3/HxOPvLJx XBCo1fk2s27gkwal8NzA5w1AXjlh1aG7JJ8tVboKNhSjDdFSXE= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: >>> 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