Re: [PATCH 1/1] net: irda: set error code on failures
From: David Miller
Date: Mon Dec 05 2016 - 14:53:41 EST
From: Pan Bian <bianpan201603@xxxxxxx>
Date: Sun, 4 Dec 2016 13:27:40 +0800
> From: Pan Bian <bianpan2016@xxxxxxx>
>
> When the calls to kzalloc() fail, the value of return variable ret may
> be 0. 0 means success in this context. This patch fixes the bug,
> assigning "-ENOMEM" to ret before calling kzalloc().
>
> Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188971
>
> Signed-off-by: Pan Bian <bianpan2016@xxxxxxx>
Applied.