aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-imx.c
diff options
context:
space:
mode:
authorZhengchao Shao <[email protected]>2023-06-30 09:26:47 +0800
committerJakub Kicinski <[email protected]>2023-06-29 19:10:07 -0700
commit08fc75735fda3be97194bfbf3c899c87abb3d0fe (patch)
tree0ea9b66be4db5c982e0002bbfa3f5bbcfdf6e7fa /drivers/usb/cdns3/cdns3-imx.c
parent3cf62c8177adb0db9e15c8b898c44f997acf3ebf (diff)
mlxsw: minimal: fix potential memory leak in mlxsw_m_linecards_init
The line cards array is not freed in the error path of mlxsw_m_linecards_init(), which can lead to a memory leak. Fix by freeing the array in the error path, thereby making the error path identical to mlxsw_m_linecards_fini(). Fixes: 01328e23a476 ("mlxsw: minimal: Extend module to port mapping with slot index") Signed-off-by: Zhengchao Shao <[email protected]> Reviewed-by: Petr Machata <[email protected]> Reviewed-by: Ido Schimmel <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions