Project

General

Profile

Bug #10797

npe: NULL pointer errors

Added by Toomas Soome 4 days ago.

Status:
In Progress
Priority:
Normal
Assignee:
Category:
driver - device drivers
Start date:
2019-04-14
Due date:
% Done:

90%

Estimated time:
Difficulty:
Medium
Tags:

Description

NULL pointer errors:

    ../../i86pc/io/pci/pci_tools.c: In function 'pcitool_map':
    ../../i86pc/io/pci/pci_tools.c:876:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
       return (NULL);
              ^
    ../../i86pc/io/pci/pci_tools.c:887:10: error: return makes integer from pointer without a cast [-Werror=int-conversion]
       return (NULL);
              ^
    ../../i86pc/io/pci/pci_tools.c: In function 'pcitool_dev_reg_ops':
    ../../i86pc/io/pci/pci_tools.c:1179:18: error: comparison between pointer and integer [-Werror]
        if (virt_addr == NULL) {
                      ^~
    cc1: all warnings being treated as errors

Also available in: Atom PDF