History

vfio/platform: fix module_put call in error flow

The ->parent_module is the one that use in try_module_get. It should also be the one the we use in module_put during vfio_platform_open().

Max Gurtovoy committed 5 years ago

Commit dc51ff91 parent 752774c1 file · +1 −1Browse files

Unified · Split

drivers/vfio/platform/vfio_platform_common.c+1−1
@@ -291,7 +291,7 @@ err_irq: · 290 unmodified lines
291 vfio_platform_regions_cleanup(vdev);291 vfio_platform_regions_cleanup(vdev);
292err_reg:292err_reg:
293 mutex_unlock(&driver_lock);293 mutex_unlock(&driver_lock);
294 module_put(THIS_MODULE);294 module_put(vdev->parent_module);
295 return ret;295 return ret;
296}296}
297 297

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t