Project

General

Profile

Bug #10748

usbms: 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-12
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:

Description

NULL pointer errors:

    ../../common/io/usb/clients/usbms/usbms.c: In function 'usbms_rserv_vuid_event_wheel':
    ../../common/io/usb/clients/usbms/usbms.c:644:14: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
        fep->pair = NULL;
                  ^
    ../../common/io/usb/clients/usbms/usbms.c: In function 'usbms_setup_abs_mouse_event':
    ../../common/io/usb/clients/usbms/usbms.c:2225:13: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
       fep->pair = NULL;
                 ^
    ../../common/io/usb/clients/usbms/usbms.c:2226:14: error: assignment makes integer from pointer without a cast [-Werror=int-conversion]
       fep->value = NULL;
                  ^
    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 a7b185437a085b630720929592f091c604f4986b

commit  a7b185437a085b630720929592f091c604f4986b
Author: Toomas Soome <tsoome@me.com>
Date:   2019-04-19T22:28:45.000Z

    10748 usbms: NULL pointer errors
    Reviewed by: Sebastian Wiedenroth <sebastian.wiedenroth@skylime.net>
    Reviewed by: Robert Mustacchi <rm@joyent.com>
    Approved by: Dan McDonald <danmcd@joyent.com>

Also available in: Atom PDF