diff options
| author | Ajay Kaher <[email protected]> | 2024-11-25 10:59:54 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2024-11-30 21:01:32 +0000 |
| commit | 98337d7c87577ded71114f6976edb70a163e27bc (patch) | |
| tree | 1c0e1f5db727ebbef4a893d9d13e41a3e095e61c /security/selinux/hooks.c | |
| parent | tcp: populate XPS related fields of timewait sockets (diff) | |
| download | kernel-98337d7c87577ded71114f6976edb70a163e27bc.tar.gz kernel-98337d7c87577ded71114f6976edb70a163e27bc.zip | |
ptp: Add error handling for adjfine callback in ptp_clock_adjtime
ptp_clock_adjtime sets ptp->dialed_frequency even when adjfine
callback returns an error. This causes subsequent reads to return
an incorrect value.
Fix this by adding error check before ptp->dialed_frequency is set.
Fixes: 39a8cbd9ca05 ("ptp: remember the adjusted frequency")
Signed-off-by: Ajay Kaher <[email protected]>
Acked-by: Richard Cochran <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'security/selinux/hooks.c')
0 files changed, 0 insertions, 0 deletions
