summaryrefslogtreecommitdiff
path: root/include/soc
diff options
context:
space:
mode:
authorGeorge McCollister <george.mccollister@gmail.com>2021-03-22 23:26:50 +0300
committerDavid S. Miller <davem@davemloft.net>2021-03-23 03:24:42 +0300
commite0c755a45f6fb6e81e3a62a94db0400ef0cdc046 (patch)
tree26bf59d9931d5a7a17ff69a0dad67caaf74e00f6 /include/soc
parent8fb16e80cb467a6edfec8c83117ea9703279d8db (diff)
downloadlinux-e0c755a45f6fb6e81e3a62a94db0400ef0cdc046.tar.xz
net: dsa: don't assign an error value to tag_ops
Use a temporary variable to hold the return value from dsa_tag_driver_get() instead of assigning it to dst->tag_ops. Leaving an error value in dst->tag_ops can result in deferencing an invalid pointer when a deferred switch configuration happens later. Fixes: 357f203bb3b5 ("net: dsa: keep a copy of the tagging protocol in the DSA switch tree") Signed-off-by: George McCollister <george.mccollister@gmail.com> Reviewed-by: Vladimir Oltean <olteanv@gmail.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/soc')
0 files changed, 0 insertions, 0 deletions