From: "Darrick J. Wong" Date: Fri, 21 Mar 2008 23:59:01 +0000 Subject: Re: [lm-sensors] [RFC/PATCH] hwmon: fix common race conditions, Message-Id: <20080321235901.GT5529@tree.beaverton.ibm.com> List-Id: References: <20080304145440.GE2892@jupiter.solarsys.private> In-Reply-To: <20080304145440.GE2892@jupiter.solarsys.private> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lm-sensors@vger.kernel.org On Thu, Mar 20, 2008 at 09:32:38AM -0400, Mark M. Hoffman wrote: > Hi all: > > adm1026.c | 22 ++++++++++++++-------- > adm1029.c | 30 +++++++++++++++++++----------- > adm1031.c | 20 +++++++++++++++----- > adm9240.c | 20 ++++++++++++++------ > adt7470.c | 40 ++++++++++++++++++++++++---------------- > adt7473.c | 54 +++++++++++++++++++++++++++++++----------------------- > asb100.c | 16 ++++++++++++---- > 7 files changed, 129 insertions(+), 73 deletions(-) > > commit 3c798b55145f42725c54d64ac7d69062a5d62bad > Author: Mark M. Hoffman > Date: Mon Mar 3 23:35:52 2008 -0500 > > hwmon: fix common race conditions, batch 1 > > Most hwmon drivers have one or more race conditions that could cause the driver > to display incorrect data; in the absolute worst case, these races could allow > divide-by-zero/OOPS. The most common of these involves a race between setting > a fan divider and displaying the fan data (RPMs). This patch fixes these race > conditions by taking the update lock (or equivalent) as necessary. > > Signed-off-by: Mark M. Hoffman The adt7470/7473 bits compile and survive simple testing, so Acked-by: Darrick J. Wong --D _______________________________________________ lm-sensors mailing list lm-sensors@lm-sensors.org http://lists.lm-sensors.org/mailman/listinfo/lm-sensors