diff options
author | Aaron Plattner <aplattner@nvidia.com> | 2014-08-12 08:34:02 -0700 |
---|---|---|
committer | Aaron Plattner <aplattner@nvidia.com> | 2014-08-12 08:34:02 -0700 |
commit | 7746b5583acd4d9adf6b7590b6488480e15ac58f (patch) | |
tree | be659175e62325cdad24f81968ccabb737b13dfc | |
parent | 55d05b67db79bc990db62556e154ccadfc07cfd7 (diff) |
340.32340.32
-rw-r--r-- | kernel.c | 8 | ||||
-rw-r--r-- | version.mk | 2 |
2 files changed, 7 insertions, 3 deletions
@@ -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); + } } /* @@ -1 +1 @@ -NVIDIA_VERSION = 340.24 +NVIDIA_VERSION = 340.32 |