aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/tests/fpga-mgr-test.c
diff options
context:
space:
mode:
authorMeghana Malladi <[email protected]>2025-04-15 09:05:43 +0000
committerPaolo Abeni <[email protected]>2025-04-17 10:11:24 +0000
commit7349c9e9979333abfce42da5f9025598083b59c9 (patch)
treef91306f59e893f7cf9376a2683f8629af925227f /drivers/fpga/tests/fpga-mgr-test.c
parentnet: ti: icssg-prueth: Fix possible NULL pointer dereference inside emac_xmit... (diff)
downloadkernel-7349c9e9979333abfce42da5f9025598083b59c9.tar.gz
kernel-7349c9e9979333abfce42da5f9025598083b59c9.zip
net: ti: icss-iep: Fix possible NULL pointer dereference for perout request
The ICSS IEP driver tracks perout and pps enable state with flags. Currently when disabling pps and perout signals during icss_iep_exit(), results in NULL pointer dereference for perout. To fix the null pointer dereference issue, the icss_iep_perout_enable_hw function can be modified to directly clear the IEP CMP registers when disabling PPS or PEROUT, without referencing the ptp_perout_request structure, as its contents are irrelevant in this case. Fixes: 9b115361248d ("net: ti: icssg-prueth: Fix clearing of IEP_CMP_CFG registers during iep_init") Reported-by: Dan Carpenter <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Meghana Malladi <[email protected]> Reviewed-by: Jacob Keller <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'drivers/fpga/tests/fpga-mgr-test.c')
0 files changed, 0 insertions, 0 deletions