Messages in this thread | | | Date | Mon, 05 Dec 2016 14:53:28 -0500 (EST) | Subject | Re: [PATCH 1/1] net: irda: set error code on failures | From | David Miller <> |
| |
From: Pan Bian <bianpan201603@163.com> Date: Sun, 4 Dec 2016 13:27:40 +0800
> From: Pan Bian <bianpan2016@163.com> > > 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@163.com>
Applied.
| |