]> git.baikalelectronics.ru Git - kernel.git/commit
vfio/pci: Fix error return code in vfio_ecap_init()
authorZhen Lei <thunder.leizhen@huawei.com>
Sat, 15 May 2021 02:04:58 +0000 (10:04 +0800)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 24 May 2021 18:14:18 +0000 (12:14 -0600)
commitd34f1742d0399a2d20fcf408a0fd243c2e0b5267
treeaf08d700bfb10cf857511d6824abfddc058a68b3
parent87d9f8b77b5545016adf3cfc494e6ea6899acca7
vfio/pci: Fix error return code in vfio_ecap_init()

The error code returned from vfio_ext_cap_len() is stored in 'len', not
in 'ret'.

Fixes: 46fe53aba620 ("vfio: Add PCI device driver")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Reviewed-by: Max Gurtovoy <mgurtovoy@nvidia.com>
Message-Id: <20210515020458.6771-1-thunder.leizhen@huawei.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/vfio_pci_config.c