mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
1dc2b3d655
The err2 error return path calls qede_ptp_disable that cleans up
on an error and frees ptp. After this, the free'd ptp is dereferenced
when ptp->clock is set to NULL and the code falls-through to error
path err1 that frees ptp again.
Fix this by calling qede_ptp_disable and exiting via an error
return path that does not set ptp->clock or kfree ptp.
Addresses-Coverity: ("Write to pointer after free")
Fixes:
|
||
---|---|---|
.. | ||
Makefile | ||
qede_dcbnl.c | ||
qede_ethtool.c | ||
qede_filter.c | ||
qede_fp.c | ||
qede_main.c | ||
qede_ptp.c | ||
qede_ptp.h | ||
qede_rdma.c | ||
qede.h |