Skip to content
Commit b00b83ae authored by Ionut Vicovan's avatar Ionut Vicovan Committed by Zhantao Tang
Browse files

s32gen1:pcie: Use list to store EP instances

commit e2fae65509b9696eef3c2acfaa33509cf71c9b58 from
https://source.codeaurora.org/external/autobsps32/linux



Remove the local pointer to one EP instance, and use a list
instead with proper add/remove mechanism.
This fixes a memory leak for the case when both controllers
are configured as EndPoints, and allows both of them to be
configured from user space.

Issue: ALB-7907

Signed-off-by: default avatarIonut Vicovan <Ionut.Vicovan@nxp.com>
Signed-off-by: default avatarZhantao Tang <zhantao.tang@windriver.com>
parent 8b1c0190
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment