summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Plattner <aplattner@nvidia.com>2014-08-12 08:34:02 -0700
committerAaron Plattner <aplattner@nvidia.com>2014-08-12 08:34:02 -0700
commit7746b5583acd4d9adf6b7590b6488480e15ac58f (patch)
treebe659175e62325cdad24f81968ccabb737b13dfc
parent55d05b67db79bc990db62556e154ccadfc07cfd7 (diff)
340.32340.32
-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