From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH RESEND] usb: gadget: pxa25x_udc: fix use-before-initialized bug
Date: Sat, 10 Jan 2015 01:42:10 +0100 [thread overview]
Message-ID: <201501100142.10234.marex@denx.de> (raw)
In-Reply-To: <1420739470-6988-1-git-send-email-Nable.MainInbox@googlemail.com>
On Thursday, January 08, 2015 at 06:51:10 PM, Alex Sadovsky wrote:
> Fix use-before-initialized bug in pxa25x_udc driver.
>
> Function usb_gadget_register_driver calls udc_disable,
> and udc_disable calls pullup_off that uses dev->mach->udc_command.
> But dev->mach is initialized in usb_gadget_register_driver after
> calling udc_disable. This patch fixes the order of initialization.
>
> Signed-off-by: Alex Sadovsky <Nable.MainInbox@googlemail.com>
Applied, thanks!
Best regards,
Marek Vasut
prev parent reply other threads:[~2015-01-10 0:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-08 17:51 [U-Boot] [PATCH RESEND] usb: gadget: pxa25x_udc: fix use-before-initialized bug Alex Sadovsky
2015-01-10 0:42 ` Marek Vasut [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=201501100142.10234.marex@denx.de \
--to=marex@denx.de \
--cc=u-boot@lists.denx.de \
/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.