lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 8 Jul 2021 07:08:49 +0200 From: Dario Binacchi <dariobin@...ero.it> To: linux-kernel@...r.kernel.org Cc: Dario Binacchi <dariobin@...ero.it>, "David S. Miller" <davem@...emloft.net>, Jonathan Lemon <jonathan.lemon@...il.com>, Richard Cochran <richardcochran@...il.com>, netdev@...r.kernel.org Subject: [PATCH] ptp: fix PTP PPS source's lookup cookie set The setting took place before the PTP PPS source was registered, so ptp->pps_source was NULL. Fixes: 8602e40fc813 ("ptp: Set lookup cookie when creating a PTP PPS source.") Signed-off-by: Dario Binacchi <dariobin@...ero.it> --- drivers/ptp/ptp_clock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/ptp/ptp_clock.c b/drivers/ptp/ptp_clock.c index a23a37a4d5dc..457129c07221 100644 --- a/drivers/ptp/ptp_clock.c +++ b/drivers/ptp/ptp_clock.c @@ -218,7 +218,6 @@ struct ptp_clock *ptp_clock_register(struct ptp_clock_info *info, pr_err("failed to create ptp aux_worker %d\n", err); goto kworker_err; } - ptp->pps_source->lookup_cookie = ptp; } err = ptp_populate_pin_groups(ptp); @@ -238,6 +237,8 @@ struct ptp_clock *ptp_clock_register(struct ptp_clock_info *info, pr_err("failed to register pps source\n"); goto no_pps; } + + ptp->pps_source->lookup_cookie = ptp; } /* Initialize a new device of our class in our clock structure. */ -- 2.17.1
Powered by blists - more mailing lists