[Bridge] [PATCH 1/1] net: bridge: set error code on failure

David Miller
Mon, 05 Dec 2016 18:27:54 -0000

From: Pan Bian <bianpan2016 at 163.com>
Date: Sat,  3 Dec 2016 19:33:23 +0800

> Function br_sysfs_addbr() does not set error code when the call
> kobject_create_and_add() returns a NULL pointer. It may be better to
> return "-ENOMEM" when kobject_create_and_add() fails.
>
> Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=188781
>
> Signed-off-by: Pan Bian <bianpan2016 at 163.com>

Applied.