summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKele Huang <huangkele@bytedance.com>2021-10-14 11:19:52 +0800
committerDavid S. Miller <davem@davemloft.net>2021-10-15 11:19:25 +0100
commitc2402d43d183b11445aed921e7bebcd47ef222f1 (patch)
tree5071158717127e2afeca51fecb1052e4f3d45f4d /include
parentec681c53f8d2d0ee362ff67f5b98dd8263c15002 (diff)
ptp: fix error print of ptp_kvm on X86_64 platform
Commit a86ed2cfa13c5 ("ptp: Don't print an error if ptp_kvm is not supported") fixes the error message print on ARM platform by only concerning about the case that the error returned from kvm_arch_ptp_init() is not -EOPNOTSUPP. Although the ARM platform returns -EOPNOTSUPP if ptp_kvm is not supported while X86_64 platform returns -KVM_EOPNOTSUPP, both error codes share the same value 95. Actually kvm_arch_ptp_init() on X86_64 platform can return three kinds of errors (-KVM_ENOSYS, -KVM_EOPNOTSUPP and -KVM_EFAULT). The problem is that -KVM_EOPNOTSUPP is masked out and -KVM_EFAULT is ignored among them. This patch fixes this by returning them to ptp_kvm_init() respectively. Signed-off-by: Kele Huang <huangkele@bytedance.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions