Project

General

Profile

Bug #10767

ipc: NULL pointer errors

Added by Toomas Soome 7 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
2019-04-13
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

NULL pointer errors:

    In file included from ../../common/sys/param.h:48:0,
                     from ../../common/os/ipc.c:407:
    ../../common/os/ipc.c: In function 'ipc_keylookup':
    ../../common/sys/null.h:32:14: error: passing argument 1 of 'audit_ipcget' makes integer from pointer without a cast [-Werror=int-conversion]
     #define NULL ((void *)0)
                  ^
    ../../common/os/ipc.c:929:18: note: in expansion of macro 'NULL'
         audit_ipcget(NULL, (void *)perm);
                      ^~~~
    In file included from ../../common/os/ipc.c:422:0:
    ../../common/c2/audit.h:589:6: note: expected 'int' but argument is of type 'void *'
     void audit_ipcget(int, void *);
          ^~~~~~~~~~~~
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk 7 months ago

  • % Done changed from 90 to 100
  • Status changed from In Progress to Closed

git commit f44210608f03909f70d6783d19f164519baf1085

commit  f44210608f03909f70d6783d19f164519baf1085
Author: Toomas Soome <tsoome@me.com>
Date:   2019-04-19T19:24:05.000Z

    10767 ipc: NULL pointer errors
    Reviewed by: Andy Stormont <astormont@racktopsystems.com>
    Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF