aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorVladimir Oltean <[email protected]>2021-06-18 13:48:12 +0000
committerDavid S. Miller <[email protected]>2021-06-18 19:26:17 +0000
commit61c77533b82ba810452e47cd9429aeb95effdd8c (patch)
tree627c6f5d95cc3744ee7085006ba8d12076786fdb /net/unix/af_unix.c
parentnet: dsa: sja1105: allow the TTEthernet configuration in the static config fo... (diff)
downloadkernel-61c77533b82ba810452e47cd9429aeb95effdd8c.tar.gz
kernel-61c77533b82ba810452e47cd9429aeb95effdd8c.zip
net: dsa: sja1105: completely error out in sja1105_static_config_reload if something fails
If reloading the static config fails for whatever reason, for example if sja1105_static_config_check_valid() fails, then we "goto out_unlock_ptp" but we print anyway that "Reset switch and programmed static config.", which is confusing because we didn't. We also do a bunch of other stuff like reprogram the XPCS and reload the credit-based shapers, as if a switch reset took place, which didn't. So just unlock the PTP lock and goto out, skipping all of that. Signed-off-by: Vladimir Oltean <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions