All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [PATCH v2] usb: xhci-pci: Check for errors from dm_pci_map_bar()
Date: Mon, 18 Jan 2021 14:27:41 +0100	[thread overview]
Message-ID: <340b243a-9680-da44-e50b-10401c620fe5@denx.de> (raw)
In-Reply-To: <20210118113004.16850-1-pali@kernel.org>

On 18.01.21 12:30, Pali Roh?r wrote:
> Function dm_pci_map_bar() may fail and returns NULL. Check this to prevent
> dereferencing a NULL pointer.
> 
> In xhci-pci this may happen when board does not enable CONFIG_PCI_PNP and
> PCI_BASE_ADDRESS_0 contains unconfigured zero address.
> 
> Signed-off-by: Pali Roh?r <pali@kernel.org>

Reviewed-by: Stefan Roese <sr@denx.de>

Thanks,
Stefan

  parent reply	other threads:[~2021-01-18 13:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-18 11:13 [PATCH] usb: xhci-pci: Check for errors from dm_pci_map_bar() Pali Rohár
2021-01-18 11:23 ` Bin Meng
2021-01-18 11:30   ` [PATCH v2] " Pali Rohár
2021-01-18 11:44     ` Bin Meng
2021-01-18 12:28     ` Marek Vasut
2021-01-18 13:27     ` Stefan Roese [this message]
2021-01-18 13:26 ` [PATCH] " Stefan Roese

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=340b243a-9680-da44-e50b-10401c620fe5@denx.de \
    --to=sr@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.