From: Stephen Warren <swarren@wwwdotorg.org>
To: Sergei Shtylyov <sshtylyov@mvista.com>
Cc: Venu Byravarasu <vbyravarasu@nvidia.com>,
balbi@ti.com, gregkh@linuxfoundation.org,
linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org
Subject: Re: [PATCH v2] usb: phy: using kzalloc instead of kmalloc
Date: Thu, 20 Dec 2012 10:26:53 -0700 [thread overview]
Message-ID: <50D34A5D.8060404@wwwdotorg.org> (raw)
In-Reply-To: <50D3082C.7070008@mvista.com>
On 12/20/2012 05:44 AM, Sergei Shtylyov wrote:
> Hello.
>
> On 20-12-2012 12:25, Venu Byravarasu wrote:
>
>> As Tegra PHY driver open is using kmalloc,
>> changing it to kzalloc.
Indeed, better might be:
usb: phy: use kzalloc to allocate struct tegra_usb_phy
Use kzalloc instead of kmalloc to allocate struct tegra_usb_phy. This
ensures that all function pointers in member u_phy are initialized to
NULL, and hence bogus functions won't be called.
prev parent reply other threads:[~2012-12-20 17:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-20 8:25 Venu Byravarasu
2012-12-20 12:44 ` Sergei Shtylyov
2012-12-20 17:26 ` Stephen Warren [this message]
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=50D34A5D.8060404@wwwdotorg.org \
--to=swarren@wwwdotorg.org \
--cc=balbi@ti.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-usb@vger.kernel.org \
--cc=sshtylyov@mvista.com \
--cc=vbyravarasu@nvidia.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome