Re: [PATCH] bridge:Fix incorrect variable assignment on error path in br_sysfs_addbr

2016-04-04 Thread Bastien Philbert
On 2016-04-04 04:14 PM, David Miller wrote: > From: Bastien Philbert > Date: Sun, 3 Apr 2016 19:04:26 -0400 > >> This fixes the incorrect variable assignment on error path in >> br_sysfs_addbr for when the call to kobject_create_and_add >> fails to assign the value of -EINVAL to the returned v

Re: [PATCH] bridge:Fix incorrect variable assignment on error path in br_sysfs_addbr

2016-04-04 Thread David Miller
From: Bastien Philbert Date: Sun, 3 Apr 2016 19:04:26 -0400 > This fixes the incorrect variable assignment on error path in > br_sysfs_addbr for when the call to kobject_create_and_add > fails to assign the value of -EINVAL to the returned variable of > err rather then incorrectly return zero ma

[PATCH] bridge:Fix incorrect variable assignment on error path in br_sysfs_addbr

2016-04-03 Thread Bastien Philbert
This fixes the incorrect variable assignment on error path in br_sysfs_addbr for when the call to kobject_create_and_add fails to assign the value of -EINVAL to the returned variable of err rather then incorrectly return zero making callers think this function has succeededed due to the previous as