diff options
author | Bastien Philbert <bastienphilbert@gmail.com> | 2016-04-03 19:04:26 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-04-04 16:12:37 -0400 |
commit | c862cc9b70526a71d07e7bd86d9b61d1c792cead (patch) | |
tree | d24f3d91bc9a6ed01a6190f4e3c34c0247a58fde /net/netlink | |
parent | be447f305494e019dfc37ea4cdf3b0e4200b4eba (diff) | |
download | linux-c862cc9b70526a71d07e7bd86d9b61d1c792cead.tar.bz2 |
bridge: Fix incorrect variable assignment on error path in br_sysfs_addbr
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 assignment being
assigned zero when assigning it the successful return value of
the call to sysfs_create_group which is zero.
Signed-off-by: Bastien Philbert <bastienphilbert@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink')
0 files changed, 0 insertions, 0 deletions