mirror of
https://github.com/torvalds/linux.git
synced 2026-11-24 15:33:28 +00:00
fc_exch_release(ep) will decrease the ep's reference count. When the reference count reaches zero, it is freed. But ep is still used in the following code, which will lead to a use after free. Return after the fc_exch_release() call to avoid use after free. Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Hannes Reinecke <[email protected]> Signed-off-by: Jianglei Nie <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>