Project

General

Profile

Actions

Bug #10708

closed

pmcs: NULL pointer errors

Added by Toomas Soome about 3 years ago. Updated about 3 years ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

NULL pointer errors:

    ../../../../src/uts/common/io/scsi/adapters/pmcs/pmcs_attach.c:770:28: error: comparison between pointer and integer [-Werror]
      if (pwp->flash_chunk_addr == NULL) {
                                ^~

    ../../../../src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c: In function 'pmcs_scsa_wq_run_one':
    ../../../../src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c:1643:18: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
          sp->cmd_tag = NULL;
                      ^
    ../../../../src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c:1658:17: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
         sp->cmd_tag = NULL;
                     ^
    ../../../../src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c: In function 'pmcs_SAS_run':
    ../../../../src/uts/common/io/scsi/adapters/pmcs/pmcs_scsa.c:1909:17: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
         sp->cmd_tag = NULL;
                     ^
    cc1: all warnings being treated as errors

Actions

Also available in: Atom PDF