commit | 85c4859b4f54d4469b1dcf411104cc40243c8c05 | [log] [tgz] |
---|---|---|
author | Eran Ben Elisha <eranbe@mellanox.com> | Tue Jun 16 12:07:10 2020 +0300 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Oct 29 09:55:10 2020 +0100 |
tree | de1f7ecc631c6bc0b8f8b94bd4319c95941b4aab | |
parent | 556ce4cb01ebb3cab50b5e3ab5b2ccf3f2c2cdd3 [diff] |
net/mlx5: Don't call timecounter cyc2time directly from 1PPS flow [ Upstream commit 0d2ffdc8d4002a62de31ff7aa3bef28c843c3cbe ] Before calling timecounter_cyc2time(), clock->lock must be taken. Use mlx5_timecounter_cyc2time instead which guarantees a safe access. Fixes: afc98a0b46d8 ("net/mlx5: Update ptp_clock_event foreach PPS event") Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com> Signed-off-by: Sasha Levin <sashal@kernel.org>