Linux Hardware Monitor development
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: Li Zhong <floridsleeves@gmail.com>
Cc: linux-hwmon@vger.kernel.org, jdelvare@suse.com
Subject: Re: [PATCH v3] drivers/hwmon/adm9240: fix data race in adm9240_fan_read
Date: Sat, 24 Sep 2022 07:33:12 -0700	[thread overview]
Message-ID: <20220924143312.GA2299605@roeck-us.net> (raw)
In-Reply-To: <20220924001751.1726369-1-floridsleeves@gmail.com>

On Fri, Sep 23, 2022 at 05:17:51PM -0700, Li Zhong wrote:
> In
> adm9240_read()
>   adm9240_fan_read()
>     adm9240_write_fan_div(),
> 
> it assumes that the caller of adm9240_write_fan_div() must hold
> data->update_lock. Otherwise, it may cause data races when data is
> updated by other threads.
> 
> Signed-off-by: Li Zhong <floridsleeves@gmail.com>

Applied.

Thanks,
Guenter

      reply	other threads:[~2022-09-24 14:33 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-24  0:17 [PATCH v3] drivers/hwmon/adm9240: fix data race in adm9240_fan_read Li Zhong
2022-09-24 14:33 ` 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=20220924143312.GA2299605@roeck-us.net \
    --to=linux@roeck-us.net \
    --cc=floridsleeves@gmail.com \
    --cc=jdelvare@suse.com \
    --cc=linux-hwmon@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox