From: Carlos Llamas cmllamas@google.com
mainline inclusion from mainline-v5.16-rc1 commit 11195bf5a355a5ef048e690f12b90b70b2c42a86 category: bugfix bugzilla: https://gitee.com/src-openeuler/kernel/issues/I9RBLZ CVE: CVE-2021-47455
Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?i...
---------------------------
This fixes the following checkpatch.pl errors:
ERROR: code indent should use tabs where possible +^I if (ptp->pps_source)$
ERROR: code indent should use tabs where possible +^I pps_unregister_source(ptp->pps_source);$
ERROR: code indent should use tabs where possible +^I kthread_destroy_worker(ptp->kworker);$
Fixes: 4225fea1cb28 ("ptp: Fix possible memory leak in ptp_clock_register()") Signed-off-by: Carlos Llamas cmllamas@google.com Signed-off-by: David S. Miller davem@davemloft.net Signed-off-by: Zheng Yejian zhengyejian1@huawei.com --- drivers/ptp/ptp_clock.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/ptp/ptp_clock.c b/drivers/ptp/ptp_clock.c index 4c460248eec1..7ef7befc899c 100644 --- a/drivers/ptp/ptp_clock.c +++ b/drivers/ptp/ptp_clock.c @@ -277,11 +277,11 @@ struct ptp_clock *ptp_clock_register(struct ptp_clock_info *info, /* Create a posix clock and link it to the device. */ err = posix_clock_register(&ptp->clock, &ptp->dev); if (err) { - if (ptp->pps_source) - pps_unregister_source(ptp->pps_source); + if (ptp->pps_source) + pps_unregister_source(ptp->pps_source);
if (ptp->kworker) - kthread_destroy_worker(ptp->kworker); + kthread_destroy_worker(ptp->kworker);
put_device(&ptp->dev);