[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <200912212003.10697.strakh@ispras.ru>
Date: Mon, 21 Dec 2009 20:03:10 +0000
From: Alexander Strakh <strakh@...ras.ru>
To: Thomas Winischhofer <thomas@...ischhofer.net>,
"Greg Kroah-Hartman" <gregkh@...e.de>, linux-usb@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: BUG null dereference in driver ./drivers/usb/misc/sisusbvga/sisusb.c
KERNEL_VERSION: 2.6.32
SUBJECT: null derefernce in function sisusb_probe
SUBSCRIBE:
In driver drivers/usb/misc/sisusbvga/sisusb.c in function
sisusb_probe:
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\n");
3087 return -ENOMEM;
3088 }
3089 kref_init(&sisusb->kref);
Found by Linux Device Drivers Verification Project (Svace Detector)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists