Project

General

Profile

Actions

Bug #10872

closed

sd: NULL pointer errors

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

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

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:
External Bug:

Description

Debug build errors with NULL pointer:

    ../../common/io/scsi/targets/sd.c: In function 'sd_faultinjection_ioctl':
    ../../common/io/scsi/targets/sd.c:30552:11: error: comparison between pointer an
    d integer [-Werror]
       if (arg != NULL) {
               ^~
    ../../common/io/scsi/targets/sd.c:30586:11: error: comparison between pointer an
    d integer [-Werror]
       if (arg != NULL) {
               ^~
    ../../common/io/scsi/targets/sd.c:30621:11: error: comparison between pointer an
    d integer [-Werror]
       if (arg != NULL) {
               ^~
    ../../common/io/scsi/targets/sd.c:30656:11: error: comparison between pointer an
    d integer [-Werror]
       if (arg != NULL) {
               ^~
    ../../common/io/scsi/targets/sd.c:30682:11: error: comparison between pointer an
    d integer [-Werror]
       if (arg != NULL) {
               ^~
    ../../common/io/scsi/targets/sd.c:30717:8: error: assignment makes integer from
    pointer without a cast [-Werror=int-conversion]
        arg = NULL;
            ^
    cc1: all warnings being treated as errors

Actions

Also available in: Atom PDF