From: Stefan Roese <sr@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/2] cfi_flash: return NULL for invalid base address input
Date: Thu, 23 May 2013 09:50:12 +0200 [thread overview]
Message-ID: <519DCA34.8030905@denx.de> (raw)
In-Reply-To: <1368769837-10630-3-git-send-email-yamada.m@jp.panasonic.com>
On 05/17/2013 07:50 AM, Masahiro Yamada wrote:
> When base address given was out of valid flash address ranges,
> flash_get_info() function returned the pointer to the last
> element of flash_info[i] array.
>
> This patch changes this function to return NULL pointer
> in such a case, which is more correct behaviour.
>
> The function flash_protect_default() calls flash_protect()
> immediately after flash_get_info() invocation.
> With this correction, flash_protect() function would be
> able to return soon, for NULL flash_info.
Applied to u-boot-cfi-flash/master.
Thanks,
Stefan
prev parent reply other threads:[~2013-05-23 7:50 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-17 5:50 [U-Boot] [PATCH 0/2] fix flash_get_info function Masahiro Yamada
2013-05-17 5:50 ` [U-Boot] [PATCH 1/2] cosmetic: cfi_flash: delete a space after an unary operator Masahiro Yamada
2013-05-23 7:49 ` Stefan Roese
2013-05-17 5:50 ` [U-Boot] [PATCH 2/2] cfi_flash: return NULL for invalid base address input Masahiro Yamada
2013-05-23 7:50 ` Stefan Roese [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=519DCA34.8030905@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.