Project

General

Profile

Bug #10433

bpf: NULL pointer errors

Added by Toomas Soome 10 months ago. Updated 9 months ago.

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

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

NULL pointer errors:

    ../../common/io/bpf/bpf.c: In function 'bpf_attachd':
    ../../common/io/bpf/bpf.c:297:10: error: comparison between pointer and integer [-Werror]
       if (mh != NULL) {
              ^~
    ../../common/io/bpf/bpf.c: In function 'bpf_ifname':
    ../../common/io/bpf/bpf.c:1389:16: error: comparison between pointer and integer [-Werror]
      if (d->bd_bif == NULL) {
                    ^~
    cc1: all warnings being treated as errors

History

#1

Updated by Electric Monk 9 months ago

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

git commit a3f59f6e87a609ee4950ebfcf34be0cca305e58b

commit  a3f59f6e87a609ee4950ebfcf34be0cca305e58b
Author: Toomas Soome <tsoome@me.com>
Date:   2019-02-25T17:23:31.000Z

    10433 bpf: NULL pointer errors
    Reviewed by: Aurélien Larcher  <aurelien.larcher@gmail.com>
    Reviewed by: Gergő Mihály Doma <domag02@gmail.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF