Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759296Ab0KPDvK (ORCPT ); Mon, 15 Nov 2010 22:51:10 -0500 Received: from fgwmail7.fujitsu.co.jp ([192.51.44.37]:49843 "EHLO fgwmail7.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756134Ab0KPDvJ (ORCPT ); Mon, 15 Nov 2010 22:51:09 -0500 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 Date: Tue, 16 Nov 2010 12:45:33 +0900 From: KAMEZAWA Hiroyuki To: Greg Thelen Cc: Andrew Morton , Balbir Singh , Daisuke Nishimura , Johannes Weiner , Wu Fengguang , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] memcg: avoid overflow in memcg_hierarchical_free_pages() Message-Id: <20101116124533.4c212800.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <1289265320-7025-1-git-send-email-gthelen@google.com> References: <1289265320-7025-1-git-send-email-gthelen@google.com> Organization: FUJITSU Co. LTD. X-Mailer: Sylpheed 3.0.3 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 533 Lines: 15 On Mon, 8 Nov 2010 17:15:20 -0800 Greg Thelen wrote: > Use page counts rather than byte counts to avoid overflowing > unsigned long local variables. > > Signed-off-by: Greg Thelen Acked-by: KAMEZAWA Hiroyuki -- 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/