PCI: rcar: Fix runtime PM imbalance in rcar_pcie_ep_probe()
Dinghao Liu authored
[ Upstream commit 1e29cd99 ]

pm_runtime_get_sync() will increase the runtime PM counter
even it returns an error. Thus a pairing decrement is needed
to prevent refcount leak. Fix this by replacing this API with
pm_runtime_resume_and_get(), which will not change the runtime
PM counter on error.

Link: https://lore.kernel.org/r/20210408072402.15069-1-dinghao.liu@zju.edu.cn

Signed-off-by: default avatarDinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: default avatarLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
f9910fae
Name Last commit Last update
Documentation dt-bindings: mtd: gpmc: Fix the ECC bytes vs. OOB bytes equation
LICENSES LICENSES/dual/CC-BY-4.0: Git rid of "smart quotes"
arch s390/pci_mmio: fully validate the VMA before calling follow_pte()
block blkcg: fix memory leak in blk_iolatency_init
certs certs: Trigger creation of RSA module signing key if it's not an RSA key
crypto crypto: ecc - handle unaligned input buffer in ecc_swap_digits
drivers PCI: rcar: Fix runtime PM imbalance in rcar_pcie_ep_probe()
fs fuse: fix use after free in fuse_read_interrupt()
include PCI: Add ACS quirks for NXP LX2xx0 and LX2xx2 platforms
init init: Suppress wrong warning for bootconfig cmdline parameter
ipc Merge branch 'akpm' (patches from Andrew)
kernel events: Reuse value read using READ_ONCE instead of re-reading it
lib lib/test_stackinit: Fix static initializer test
mm mm/mempolicy: fix a race between offset_il_node and mpol_rebind_task
net net: dsa: flush switchdev workqueue before tearing down CPU/DSA ports
samples samples: pktgen: fix to print when terminated normally
scripts gen_compile_commands: fix missing 'sys' package
security Smack: Fix wrong semantics in smk_access_entry()
sound ASoC: soc-pcm: protect BE dailink state changes in trigger
tools selftest: net: fix typo in altname test
usr .gitignore: prefix local generated files with a slash
virt KVM: Do not leak memory for duplicate debugfs directories
.clang-format clang-format: Update with the latest for_each macro list
.cocciconfig scripts: add Linux .cocciconfig for coccinelle
.get_maintainer.ignore Opt out of scripts/get_maintainer.pl
.gitattributes .gitattributes: use 'dts' diff driver for dts files
.gitignore .gitignore: ignore only top-level modules.builtin
.mailmap Merge tag 'm68k-for-v5.14-tag1' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/linux-m68k
COPYING COPYING: state that all contributions really are covered by this file
CREDITS MAINTAINERS: move Murali Karicheri to credits
Kbuild kbuild: rename hostprogs-y/always to hostprogs/always-y
Kconfig kbuild: ensure full rebuild when the compiler is updated
MAINTAINERS MAINTAINERS: exfat: update my email address
Makefile Linux 5.14.6
README Drop all 00-INDEX files from Documentation/
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.