Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932664AbeAOJAT (ORCPT + 1 other); Mon, 15 Jan 2018 04:00:19 -0500 Received: from mout.web.de ([212.227.15.4]:50051 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932252AbeAOJAR (ORCPT ); Mon, 15 Jan 2018 04:00:17 -0500 Subject: Re: hyperv/netvsc: Delete two error messages for a failed memory allocation in netvsc_init_buf() To: Haiyang Zhang , devel@linuxdriverproject.org, netdev@vger.kernel.org Cc: KY Srinivasan , Stephen Hemminger , LKML , kernel-janitors@vger.kernel.org References: From: SF Markus Elfring Message-ID: Date: Mon, 15 Jan 2018 10:00:11 +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: 7bit X-Provags-ID: V03:K0:7GH5m0rvAlngdhKyNrNs+spDhSBSo8Cm8Zmxwkm+xW9LVSKP9O2 yLMxRcnpbNNMuKz0wVlj6jX+qHosNhRflmiQxWvKKRP7OTRY99GKaI5yEyfHATCblpYcf1Z E2ltA5QeucIHqY2FnMpi1gGbxzCbUlXnJGoEwvtS5DD6ZiiVbBhTpsbIwLxPM4SdLKS2jdt NXTODFWkrOhqtgDED5f3w== X-UI-Out-Filterresults: notjunk:1;V01:K0:PI0fOUc3eKs=:f2tWk4jzIgiHGgL3BgoaWv c8mWUbLw8zdaFJCn9MXBs1AyUWy2E8+b4aj3vFLffpuekbs6tZNuWzPPNeLbetrYfdTzNwAp3 TNdbEjd3cX9Bm5TFMFDYP9fuTm6SqlNYLSAH+to9l2Lg+lhEy96CeLWHwP0IXpjwwnpX+DhLl cJWnubW9nM8TKCPMy9IlWAgj7ugrfJXJMGLJRocYzuBbzSsEBkhp/alV5C1xidD4fJZUMTb4P JbfBJ2vjbwzJVbqK5dRe3vXwgBjnmGf7fBDgA4fyDkpV6/tV1GtTQ3fgKPv49+JU0m7KK+xh0 Em3CYez0H4rI2qhVIHzFbiwXNnhxE6lDpO1IsQtmCUcOBKwmohs09V8gyTzbvqXixY27bRtJY rCK1yV5QhCRRqn1ENbeS6lzVWavdOZVdMx8hZ0SpwdtvJuBJL/akD/ssT+U683ekM1pXoZxhd 7BgcmQEpTA6xv2XFLrVzBXKCIt3t92+wzJT5ziPLzJxkIQRRNmaH4WdOSlxMkWGudvU9NKaEq 1eUMRJEk9zUmXmj2CE1T3s67G5UrgWPvq5yOGjMSl9GNV+pPa5Tin4cXLPwCJn+wqTwwttswv C5+vRFZeOO/kkKUPu39cej9ATFZXsNd4UDWyoOT1o5MH0MsKBkBrtSHtZ2td9W23KWnfXwmcj NS+8VK2tJFPzw4eHdbnoEsncfHZEfDmY1eJoiJ2mFydx9mg3GI3dB8Q2EIkr+KZM7ckuy0cCk NBzUvgLpU2ufMoP57qmxrlBVYEez7TA5SDkIWe2kNqnLPI/HHuG1ir7KFpntWmgYrTiPuISGR xNZiRXImM4zkO/oC6fTk6JBpQz8V+N8bdAwC0ZxNIX3QVDLiV0= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: > These messages are not displayed anywhere else: > "unable to allocate receive buffer of size %u\n" > "unable to allocate send buffer of size %u\n", > > After set ret = -ENOMEM; and cleanup, we won't know which buffer allocation failed without the error message. How do you think about to achieve the distinction for these buffers by any other means? Can a detailed function call stack dump be appropriate? > So please do not remove these messages. Would you dare to adjust this function implementation in any other ways? Regards, Markus