Details

[Home]

Issue of the Implementation # L0017

Brief

drivers/usb/misc/sisusbvga/sisusb.c: Null dereference

Detailed Description

Null dereference in driver drivers/usb/misc/sisusbvga/sisusb.c in function sisusb_probe: Path:

  • 1. if in line 3085 after calling function kzalloc variable sisub = NULL, then we goto line 3086.
  • 2. In line 3086: null dereference of sisusb - "&sisusb->sisusb_dev->dev".
  • 3084         /* Allocate memory for our private */
    3085         if (!(sisusb = kzalloc(sizeof(*sisusb), GFP_KERNEL))) {
    3086                 dev_err(&sisusb->sisusb_dev->dev, "Failed to allocate 
    memory for private data
    ");
    3087                 return -ENOMEM;
    3088         }
    3089         kref_init(&sisusb->kref);
    

    Component

    linux-kernel 2.6.32

    Accepted

    http://lkml.org/lkml/2009/12/21/135
    commit

    Status

    Fixed in kernel 3.10-rc1

    [Home]