mirror of
https://github.com/gnif/vendor-reset.git
synced 2026-02-10 11:22:43 +01:00
[amd] common: add missing device dereference.
This commit is contained in:
@@ -42,7 +42,7 @@ int amd_common_pre_reset(struct vendor_reset_dev *dev)
|
||||
int ret, i;
|
||||
|
||||
/* disable bus reset for the card, seems to be an issue with all of them */
|
||||
dev->dev_flags |= PCI_DEV_FLAGS_NO_BUS_RESET;
|
||||
dev->pdev->dev_flags |= PCI_DEV_FLAGS_NO_BUS_RESET;
|
||||
|
||||
/* do not try to reset the card under amdgpu, it will cause problems */
|
||||
if (pdev->driver && !strcmp(pdev->driver->name, "amdgpu"))
|
||||
|
||||
Reference in New Issue
Block a user