summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/os/task.c
diff options
context:
space:
mode:
authorToomas Soome <tsoome@me.com>2019-01-18 10:38:01 +0200
committerToomas Soome <tsoome@me.com>2019-02-20 22:08:00 +0200
commit7e12ceb3ebc63aeb71e91b496032ca22ca55f660 (patch)
treea720628c8eef67512aba873033fc352faac80c8d /usr/src/uts/common/os/task.c
parent7e897d1fc847b22dc338da9a5a59dae0cd8765de (diff)
downloadillumos-gate-7e12ceb3ebc63aeb71e91b496032ca22ca55f660.tar.gz
10376 uts: NULL pointer issues in genunix
Reviewed by: Andy Fiddaman <andy@omniosce.org> Reviewed by: Andy Stormont <astormont@racktopsystems.com> Reviewed by: John Levon <john.levon@joyent.com> Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/uts/common/os/task.c')
-rw-r--r--usr/src/uts/common/os/task.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/uts/common/os/task.c b/usr/src/uts/common/os/task.c
index bafcfd45e0..91325429a3 100644
--- a/usr/src/uts/common/os/task.c
+++ b/usr/src/uts/common/os/task.c
@@ -456,7 +456,7 @@ task_rele(task_t *tk)
* the task fails.
*/
if (taskq_dispatch(exacct_queue, exacct_commit_task, tk,
- TQ_NOSLEEP | TQ_NOQUEUE) == NULL) {
+ TQ_NOSLEEP | TQ_NOQUEUE) == (uintptr_t)NULL) {
mutex_enter(&task_commit_lock);
if (task_commit_head == NULL) {
task_commit_head = task_commit_tail = tk;