[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-kernel
Subject: Re: [PATCH 2/2] mempolicy: fix typo
From: Andrew Morton <akpm () linux-foundation ! org>
Date: 2013-02-28 23:54:19
Message-ID: 20130228155419.cf412612.akpm () linux-foundation ! org
[Download RAW message or body]
On Thu, 28 Feb 2013 00:25:07 -0500
kosaki.motohiro@gmail.com wrote:
> From: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
>
> Currently, n_new is wrongly initialized. start and end parameter
> are inverted. Let's fix it.
>
> ...
>
> --- a/mm/mempolicy.c
> +++ b/mm/mempolicy.c
> @@ -2390,7 +2390,7 @@ static int shared_policy_replace(struct shared_policy *sp, unsigned long start,
>
> *mpol_new = *n->policy;
> atomic_set(&mpol_new->refcnt, 1);
> - sp_node_init(n_new, n->end, end, mpol_new);
> + sp_node_init(n_new, end, n->end, mpol_new);
> n->end = start;
> sp_insert(sp, n_new);
> n_new = NULL;
huh. What were the runtime effects of this problem?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic