All of lore.kernel.org
 help / color / mirror / Atom feed
* [KJ] Re: [Patch] kzalloc() conversion in drivers/usb
@ 2006-02-27 19:33 Greg KH
  2006-02-27 20:29 ` Eric Sesterhenn
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: Greg KH @ 2006-02-27 19:33 UTC (permalink / raw)
  To: kernel-janitors

[-- Attachment #1: Type: text/plain, Size: 1008 bytes --]

On Mon, Feb 27, 2006 at 05:22:24PM +0100, Eric Sesterhenn wrote:
> hi,
> 
> this patch converts drivers/usb to kzalloc usage.
> Compile tested with allyes config.

A lot of these changes are already in the latest -mm tree.  Can you
rediff this against that tree instead?

> This also fixes a bug in drivers/usb/serial/cp2101.c
> where memset() was used before checking if kmalloc() returns NULL.
> 
> I think there also was a bug in drivers/usb/gadget/inode.c because
> it used sizeof(*data) for the kmalloc() and sizeof(data) for
> the memset(), since sizeof(data) just returns the size for a pointer.
> 
> I assume there is also a bug in drivers/usb/gadget/omap_udc.c
> in omap_alloc_request(), req gets allocated via kmalloc() and
> the function returns &req->req, no matter if req is NULL, which
> looks like a NULL dereference to me, maybe someone who is more familar
> with this code might have a look at it.

Care to send the gadget patches to the usb gadget maintainer separately?

thanks,

greg k-h

[-- Attachment #2: Type: text/plain, Size: 168 bytes --]

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/kernel-janitors

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-03-08 12:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-27 19:33 [KJ] Re: [Patch] kzalloc() conversion in drivers/usb Greg KH
2006-02-27 20:29 ` Eric Sesterhenn
2006-02-27 21:36 ` [KJ] Re: [Patch] kzalloc() conversion in drivers/usb/gadget David Brownell
2006-02-28  9:20 ` Eric Sesterhenn
2006-03-01  0:18 ` [KJ] Re: [Patch] kzalloc() conversion in drivers/usb Håkon Løvdal
2006-03-06 10:42 ` [KJ] Re: [Patch] kzalloc() conversion in crypto/ Herbert Xu
2006-03-06 20:57 ` [KJ] Re: [Patch] kzalloc() conversion in arch/sparc64 David S. Miller
2006-03-08 10:20 ` [KJ] Re: [Patch] kzalloc() conversion in drivers/block Jens Axboe
2006-03-08 10:22 ` Jens Axboe
2006-03-08 12:21 ` Christoph Hellwig
2006-03-08 12:30 ` Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.