[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4F2315B0.2010507@freescale.com>
Date: Fri, 27 Jan 2012 15:22:56 -0600
From: Timur Tabi <timur@...escale.com>
To: Dmitry Artamonow <mad_soft@...ox.ru>
CC: <linux-watchdog@...r.kernel.org>,
Kumar Gala <galak@...nel.crashing.org>,
Wim Van Sebroeck <wim@...ana.be>,
<linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] watchdog: fix GETTIMEOUT ioctl in booke_wdt
Timur Tabi wrote:
> Dmitry Artamonow wrote:
>> +#ifdef CONFIG_FSL_BOOKE
>> + return put_user(period_to_sec(booke_wdt_period), p);
>> +#else
>
> period_to_sec() returns an unsigned long long, which means that the driver
> will write 8 bytes instead of 4 to user space.
Ok, I take that back. put_user() uses the size of the pointer, which
makes more sense anyway.
--
Timur Tabi
Linux kernel developer at Freescale
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists