diff options
| author | Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com> | 2026-07-01 19:05:19 +0200 |
|---|---|---|
| committer | Hamza Mahfooz <hamzamahfooz@linux.microsoft.com> | 2026-07-20 10:33:24 -0400 |
| commit | 8c11cfc8c103846cb0886b1bed910f9cd5921e5a (patch) | |
| tree | 73ebf5b8da1471ae585808c0788f09a0e52e686e /tools/perf/scripts/python/bin | |
| parent | b67ac31d7f42b2b2e9ca77c66bbbb3646f039103 (diff) | |
drm/hyperv: Unregister pci driver in error path before module unload
The pci driver must not kept registered if the module is unloaded after
vmbus_driver_register() fails. So check the return value of
vmbus_driver_register() and unregister the pci driver on failure.
Fixes: 76c56a5affeb ("drm/hyperv: Add DRM driver for hyperv synthetic video device")
Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@baylibre.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Michael Kelley <mhklinux@outlook.com>
Signed-off-by: Hamza Mahfooz <hamzamahfooz@linux.microsoft.com>
Link: https://patch.msgid.link/4b7dbf00ce4ff664b7d5dd74b2f39d8d87c1ade9.1782925276.git.u.kleine-koenig@baylibre.com
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
