mirror of
https://github.com/NVIDIA/open-gpu-kernel-modules.git
synced 2026-02-21 23:43:59 +00:00
545.23.06
This commit is contained in:
@@ -294,7 +294,7 @@ nvswitch_i2c_add_adapter
|
||||
NV_PCI_BUS_NUMBER(pci_dev),
|
||||
NV_PCI_SLOT_NUMBER(pci_dev),
|
||||
PCI_FUNC(pci_dev->devfn));
|
||||
if ((rc < 0) && (rc >= sizeof(adapter->name)))
|
||||
if ((rc < 0) || (rc >= sizeof(adapter->name)))
|
||||
{
|
||||
goto cleanup;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user