With the introduction of nvidia-uvm module, unloading nvidia module will fail unless...
authorDebian NVIDIA Maintainers <pkg-nvidia-devel@lists.alioth.debian.org>
Tue, 24 Jan 2017 14:20:27 +0000 (14:20 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 24 Jan 2017 14:20:27 +0000 (14:20 +0000)
Origin: upstream, https://github.com/Bumblebee-Project/Bumblebee/commit/1ada79fe5916961fc4e4917f8c63bb184908d986
Bug: https://github.com/Bumblebee-Project/Bumblebee/issues/565
Bug-Debian: 793389

Gbp-Pq: Name modprobe-r-instead-of-rmmod.patch

src/module.c

index f7b99fad5e5bfcc6106002a71313c58f15295bd0..f6d71445bfdc957a25be0dcd367a651abc7bca79 100644 (file)
@@ -96,7 +96,8 @@ int module_unload(char *driver) {
     int retries = 30;
     bb_log(LOG_INFO, "Unloading %s driver\n", driver);
     char *mod_argv[] = {
-      "rmmod",
+      "modprobe",
+      "-r",
       driver,
       NULL
     };