mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Sergey Vlasov <vsu@altlinux.ru>
To: mlord@pobox.com
Cc: linux-kernel@vger.kernel.org
Subject: vmalloc fix buggy again?
Date: Thu, 18 Mar 2004 21:07:44 +0300	[thread overview]
Message-ID: <20040318180744.GE16242@master.mivlgu.local> (raw)

[-- Attachment #1: Type: text/plain, Size: 588 bytes --]

Hello!

> # ChangeSet
> #   2004/03/14 13:16:58-03:00 mlord...
> #   [PATCH] Yet another vmalloc() fixup
> # 
> diff -Nru a/mm/vmalloc.c b/mm/vmalloc.c
> --- a/mm/vmalloc.c	Thu Mar 18 09:44:53 2004
> +++ b/mm/vmalloc.c	Thu Mar 18 09:44:53 2004
> @@ -184,7 +184,7 @@
>  	spin_unlock(&init_mm.page_table_lock);
>  	flush_cache_all();
>  	if (address > start)
> -		vmfree_area_pages((address - start), address - start);
> +		vmfree_area_pages(address, address - start);
>  	return -ENOMEM;
>  }
>  

Looks like this should be

		vmfree_area_pages(start, address - start);

-- 
Sergey Vlasov

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

             reply	other threads:[~2004-03-18 18:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-18 18:07 Sergey Vlasov [this message]
2004-03-18 21:11 ` Mark Lord

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=20040318180744.GE16242@master.mivlgu.local \
    --to=vsu@altlinux.ru \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mlord@pobox.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

all inboxes | Powered by JetHome®