From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Bolle Date: Wed, 07 Dec 2016 19:06:23 +0000 Subject: Re: [patch] ser_gigaset: return -ENOMEM on error instead of success Message-Id: <1481137583.12596.19.camel@tiscali.nl> List-Id: References: <20161207112203.GC5507@elgon.mountain> In-Reply-To: <20161207112203.GC5507@elgon.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Dan Carpenter , Tilman Schmidt Cc: Karsten Keil , "David S. Miller" , gigaset307x-common@lists.sourceforge.net, netdev@vger.kernel.org, kernel-janitors@vger.kernel.org On Wed, 2016-12-07 at 14:22 +0300, Dan Carpenter wrote: > If we can't allocate the resources in gigaset_initdriver() then we > should return -ENOMEM instead of zero. That's entirely correct. > Fixes: 2869b23e4b95 ("[PATCH] drivers/isdn/gigaset: new M101 driver (v2)") > Signed-off-by: Dan Carpenter > --- > Ancient code. For ancient hardware. I'll be back (probably tomorrow) after a short test to see whether this really needs to go into stable. It almost certainly should, but I'd like to first see the mess the current code leaves behind once gigaset_initdriver() fails before saying so. Thanks for reporting this! Paul Bolle