Searched hist:d9fdbf132dab4d844167004ae4ca979fbebd9871 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/ptp/ |
H A D | ptp_ocp.c | diff d9fdbf132dab4d844167004ae4ca979fbebd9871 Mon Aug 16 17:13:35 CDT 2021 Jonathan Lemon <jonathan.lemon@gmail.com> ptp: ocp: Fix error path for pci_ocp_device_init()
If ptp_ocp_device_init() fails, pci_disable_device() is skipped. Fix the error handling so this case is covered. Update ptp_ocp_remove() so the normal exit path is identical.
Reported-by: Hulk Robot <hulkci@huawei.com> Fixes: 773bda964921 ("ptp: ocp: Expose various resources on the timecard.") Signed-off-by: Jonathan Lemon <jonathan.lemon@gmail.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|