thermal/core: Protect sysfs accesses to thermal operations with thermal zone mutex
Guenter Roeck authored

Protect access to thermal operations against thermal zone removal by
acquiring the thermal zone device mutex. After acquiring the mutex, check
if the thermal zone device is registered and abort the operation if not.

With this change, we can call __thermal_zone_device_update() instead of
thermal_zone_device_update() from trip_point_temp_store() and from
emul_temp_store(). Similar, we can call __thermal_zone_set_trips() instead
of thermal_zone_set_trips() from trip_point_hyst_store().
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
05eeee2b
Name Last commit Last update
Documentation Merge tag 'hwmon-for-v6.1-rc2' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging
LICENSES LICENSES/LGPL-2.1: Add LGPL-2.1-or-later as valid identifiers
arch Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
block Merge tag 'block-6.1-2022-10-20' of git://git.kernel.dk/linux
certs certs: make system keyring depend on built-in x509 parser
crypto treewide: use get_random_bytes() when possible
drivers thermal/core: Protect sysfs accesses to thermal operations with thermal zone mutex
fs Merge tag 'efi-fixes-for-v6.1-1' of git://git.kernel.org/pub/scm/linux/kernel/git/efi/efi
include thermal: Validate new state in cur_state_store()
init init: Kconfig: fix spelling mistake "satify" -> "satisfy"
io_uring io_uring/net: fail zc sendmsg when unsupported by socket
ipc Merge tag 'mm-nonmm-stable-2022-10-11' of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm
kernel kernel/utsname_sysctl.c: Fix hostname polling
lib Merge tag 'random-6.1-rc1-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/crng/random
mm mm/huge_memory: do not clobber swp_entry_t during THP split
net Merge tag 'io_uring-6.1-2022-10-22' of git://git.kernel.dk/linux
rust Kbuild: add Rust support
samples Merge tag 'vfio-v6.1-rc1' of https://github.com/awilliam/linux-vfio
scripts Merge tag 'kbuild-fixes-v6.1' of git://git.kernel.org/pub/scm/linux/kernel/git/masahiroy/linux-kbuild
security selinux: enable use of both GFP_KERNEL and GFP_ATOMIC in convert_context()
sound Merge tag 'sound-fix-6.1-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound
tools Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
usr usr/gen_init_cpio.c: remove unnecessary -1 values from int file
virt kvm: Add support for arch compat vm ioctls
.clang-format PCI/DOE: Add DOE mailbox support functions
.cocciconfig
.get_maintainer.ignore
.gitattributes
.gitignore
.mailmap
.rustfmt.toml
COPYING
CREDITS
Kbuild
Kconfig
MAINTAINERS
Makefile
README
Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the Restructured Text markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.