Re: [PATCH] ptp: ocp: Fix a resource leak in an error handling path

From: Richard Cochran
Date: Wed May 12 2021 - 10:36:27 EST


On Wed, May 12, 2021 at 01:15:29PM +0200, Christophe JAILLET wrote:
> If an error occurs after a successful 'pci_ioremap_bar()' call, it must be
> undone by a corresponding 'pci_iounmap()' call, as already done in the
> remove function.
>
> Fixes: a7e1abad13f3 ("ptp: Add clock driver for the OpenCompute TimeCard.")
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>

Acked-by: Richard Cochran <richardcochran@xxxxxxxxx>