aboutsummaryrefslogtreecommitdiff
path: root/drivers/fpga/xilinx-spi.c
diff options
context:
space:
mode:
authorVladimir Oltean <[email protected]>2022-12-10 01:52:42 +0200
committerJakub Kicinski <[email protected]>2022-12-12 15:27:52 -0800
commite095493091e850d5292ad01d8fbf5cde1d89ac53 (patch)
tree7cf6079167c0559a9cc5c7ebc70e74d379f8c1d1 /drivers/fpga/xilinx-spi.c
parent0c87b545a2ed5cd8a6318011f1c92b188c2d74bc (diff)
net: dsa: tag_8021q: avoid leaking ctx on dsa_tag_8021q_register() error path
If dsa_tag_8021q_setup() fails, for example due to the inability of the device to install a VLAN, the tag_8021q context of the switch will leak. Make sure it is freed on the error path. Fixes: 328621f6131f ("net: dsa: tag_8021q: absorb dsa_8021q_setup into dsa_tag_8021q_{,un}register") Signed-off-by: Vladimir Oltean <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/fpga/xilinx-spi.c')
0 files changed, 0 insertions, 0 deletions