diff options
| author | 2021-08-16 15:13:35 -0700 | |
|---|---|---|
| committer | 2021-08-16 17:18:39 -0700 | |
| commit | d9fdbf132dab4d844167004ae4ca979fbebd9871 (patch) | |
| tree | 63cf896d51e58d81c84da991a0394c1485083f97 /include/linux/timerqueue.h | |
| parent | ptp: ocp: Fix uninitialized variable warning spotted by clang. (diff) | |
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>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
