From: Andrew Morton <akpm@linux-foundation.org>
To: Marco Stornelli <marco.stornelli@gmail.com>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>,
torvalds@linux-foundation.org
Subject: Re: [PATCH] Fixed use of rounddown_pow_of_two in ramoops
Date: Mon, 21 Nov 2011 16:06:35 -0800 [thread overview]
Message-ID: <20111121160635.e3f92b7f.akpm@linux-foundation.org> (raw)
In-Reply-To: <4EC7AFDF.6030009@gmail.com>
On Sat, 19 Nov 2011 14:32:15 +0100
Marco Stornelli <marco.stornelli@gmail.com> wrote:
> From: Marco Stornelli <marco.stornelli@gmail.com>
>
> The return value of rounddown_pow_of_two wasn't evaluated, so the
> operation was a no-op.
>
> Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
> ---
> drivers/char/ramoops.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/char/ramoops.c b/drivers/char/ramoops.c
> index 7c7f42a1f8..9658116 100644
> --- a/drivers/char/ramoops.c
> +++ b/drivers/char/ramoops.c
> @@ -126,8 +126,8 @@ static int __init ramoops_probe(struct platform_device *pdev)
> goto fail3;
> }
>
> - rounddown_pow_of_two(pdata->mem_size);
> - rounddown_pow_of_two(pdata->record_size);
> + pdata->mem_size = rounddown_pow_of_two(pdata->mem_size);
> + pdata->record_size = rounddown_pow_of_two(pdata->record_size);
>
> /* Check for the minimum memory size */
> if (pdata->mem_size < MIN_MEM_SIZE &&
waah.
Reported-by: Andrew Morton <akpm@linux-foundation.org>
There goes my chance to get my name in the kernel tree :(
prev parent reply other threads:[~2011-11-22 0:06 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-19 13:32 [PATCH] Fixed use of rounddown_pow_of_two in ramoops Marco Stornelli
2011-11-20 9:30 ` Cong Wang
2011-11-22 0:06 ` Andrew Morton [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=20111121160635.e3f92b7f.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marco.stornelli@gmail.com \
--cc=torvalds@linux-foundation.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox