From: Greg KH <gregkh@suse.de>
To: kernel-janitors@vger.kernel.org
Subject: [KJ] Re: [Patch] kzalloc() conversion in drivers/usb
Date: Mon, 27 Feb 2006 19:33:09 +0000 [thread overview]
Message-ID: <20060227193309.GA9991@suse.de> (raw)
[-- 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
next reply other threads:[~2006-02-27 19:33 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-27 19:33 Greg KH [this message]
2006-02-27 20:29 ` [KJ] Re: [Patch] kzalloc() conversion in drivers/usb 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060227193309.GA9991@suse.de \
--to=gregkh@suse.de \
--cc=kernel-janitors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.