Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966434AbXHGWHf (ORCPT ); Tue, 7 Aug 2007 18:07:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S966915AbXHGVpE (ORCPT ); Tue, 7 Aug 2007 17:45:04 -0400 Received: from sovereign.computergmbh.de ([85.214.69.204]:56814 "EHLO sovereign.computergmbh.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S966001AbXHGVpA (ORCPT ); Tue, 7 Aug 2007 17:45:00 -0400 Date: Tue, 7 Aug 2007 23:44:58 +0200 (CEST) From: Jan Engelhardt To: Greg KH cc: linux-kernel@vger.kernel.org, stable@kernel.org, torvalds@linux-foundation.org, Justin Forbes , Zwane Mwaikambo , "Theodore Ts'o" , Randy Dunlap , Dave Jones , Chuck Wolber , Chris Wedgwood , Michael Krufky , Chuck Ebbert , Domenico Andreoli , akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, davi@haxent.com.br, mtk-manpages@gmx.net, davidel@xmailserver.org Subject: Re: [2.6.22.2 review 26/84] make timerfd return a u64 and fix the __put_user In-Reply-To: <20070807204459.GA23028@kroah.com> Message-ID: References: <20070807204034.882009319@mini.kroah.org> <20070807204459.GA23028@kroah.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 971 Lines: 35 On Aug 7 2007 13:44, Greg KH wrote: >--- a/fs/timerfd.c >+++ b/fs/timerfd.c >@@ -95,7 +95,7 @@ static ssize_t timerfd_read(struct file > { > struct timerfd_ctx *ctx = file->private_data; > ssize_t res; >- u32 ticks = 0; >+ u64 ticks = 0; > DECLARE_WAITQUEUE(wait, current); > > if (count < sizeof(ticks)) >@@ -130,7 +130,7 @@ static ssize_t timerfd_read(struct file > * callback to avoid DoS attacks specifying a very > * short timer period. > */ >- ticks = (u32) >+ ticks = (u64) > hrtimer_forward(&ctx->tmr, > hrtimer_cb_get_time(&ctx->tmr), > ctx->tintv); [ Minor: Cast is not strictly required; hrtimer_forward()s result is autopromoted/demoted to the type of @ticks. ] Jan -- - 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/