summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kernel.c8
-rw-r--r--version.mk2
2 files changed, 7 insertions, 3 deletions
diff --git a/kernel.c b/kernel.c
index 082eba2..f28ef4e 100644
--- a/kernel.c
+++ b/kernel.c
@@ -1478,6 +1478,7 @@ int test_kernel_module(Options *op, Package *p)
if (fd >= 0) {
if (read(fd, &old_loglevel, 1) == 1) {
new_loglevel = '2'; /* KERN_CRIT */
+ lseek(fd, 0, SEEK_SET);
write(fd, &new_loglevel, 1);
}
} else {
@@ -1600,12 +1601,15 @@ test_exit:
nvfree(data);
if (fd >= 0) {
- if (new_loglevel != 0)
+ if (new_loglevel != 0) {
+ lseek(fd, 0, SEEK_SET);
write(fd, &old_loglevel, 1);
+ }
close(fd);
} else {
- if (new_loglevel != 0)
+ if (new_loglevel != 0) {
sysctl(name, 2, NULL, 0, &old_loglevel, len);
+ }
}
/*
diff --git a/version.mk b/version.mk
index a7b8a27..742cdd0 100644
--- a/version.mk
+++ b/version.mk
@@ -1 +1 @@
-NVIDIA_VERSION = 340.24
+NVIDIA_VERSION = 340.32