All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH] hwmon: (gpio-fan) Prevent overflow problem when writing large limits
Date: Mon, 04 Aug 2014 14:28:46 +0000	[thread overview]
Message-ID: <53DF989E.8060806@roeck-us.net> (raw)
In-Reply-To: <1406957798.14101.1.camel@phoenix>

On 08/01/2014 10:36 PM, Axel Lin wrote:
> On platforms with sizeof(int) < sizeof(unsigned long), writing a rpm value
> larger than MAXINT will result in unpredictable limit values written to the
> chip. Avoid auto-conversion from unsigned long to int to fix the problem.
>
> Signed-off-by: Axel Lin <axel.lin@ingics.com>

Good catch. Applied.

Thanks,
Guenter



_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

      reply	other threads:[~2014-08-04 14:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-08-02  5:36 [lm-sensors] [PATCH] hwmon: (gpio-fan) Prevent overflow problem when writing large limits Axel Lin
2014-08-04 14:28 ` Guenter Roeck [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=53DF989E.8060806@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=lm-sensors@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.