* [2.6 patch] drivers/usb/misc/usbtest.c: fix a NULL dereference
@ 2005-03-25 1:06 Adrian Bunk
2005-03-28 20:45 ` Greg KH
0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2005-03-25 1:06 UTC (permalink / raw)
To: gregkh; +Cc: linux-usb-devel, linux-kernel
This patch fixes a NULL dereference found by the Coverity checker.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
--- linux-2.6.12-rc1-mm1-full/drivers/usb/misc/usbtest.c.old 2005-03-24 04:33:34.000000000 +0100
+++ linux-2.6.12-rc1-mm1-full/drivers/usb/misc/usbtest.c 2005-03-24 04:33:59.000000000 +0100
@@ -851,7 +851,7 @@
*/
urb = kmalloc (param->sglen * sizeof (struct urb *), SLAB_KERNEL);
if (!urb)
- goto cleanup;
+ return -ENOMEM;
memset (urb, 0, param->sglen * sizeof (struct urb *));
for (i = 0; i < param->sglen; i++) {
int pipe = usb_rcvctrlpipe (udev, 0);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [2.6 patch] drivers/usb/misc/usbtest.c: fix a NULL dereference
2005-03-25 1:06 [2.6 patch] drivers/usb/misc/usbtest.c: fix a NULL dereference Adrian Bunk
@ 2005-03-28 20:45 ` Greg KH
0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2005-03-28 20:45 UTC (permalink / raw)
To: Adrian Bunk; +Cc: gregkh, linux-usb-devel, linux-kernel
On Fri, Mar 25, 2005 at 02:06:29AM +0100, Adrian Bunk wrote:
> This patch fixes a NULL dereference found by the Coverity checker.
>
> Signed-off-by: Adrian Bunk <bunk@stusta.de>
Applied, thanks.
greg k-h
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-03-28 20:50 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-25 1:06 [2.6 patch] drivers/usb/misc/usbtest.c: fix a NULL dereference Adrian Bunk
2005-03-28 20:45 ` Greg KH
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox