stable.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
To: linux-kernel@vger.kernel.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	stable@vger.kernel.org, Miaoqian Lin <linmq006@gmail.com>,
	Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>,
	Vinod Koul <vkoul@kernel.org>, Sasha Levin <sashal@kernel.org>
Subject: [PATCH 5.10 045/129] phy: samsung: Fix missing of_node_put() in exynos_sata_phy_probe
Date: Wed,  4 May 2022 18:43:57 +0200	[thread overview]
Message-ID: <20220504153024.744039124@linuxfoundation.org> (raw)
In-Reply-To: <20220504153021.299025455@linuxfoundation.org>

From: Miaoqian Lin <linmq006@gmail.com>

[ Upstream commit 388ec8f079f2f20d5cd183c3bc6f33cbc3ffd3ef ]

The device_node pointer is returned by of_parse_phandle() with refcount
incremented. We should use of_node_put() on it when done.

Fixes: bcff4cba41bc ("PHY: Exynos: Add Exynos5250 SATA PHY driver")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220407091857.230386-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
 drivers/phy/samsung/phy-exynos5250-sata.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/phy/samsung/phy-exynos5250-sata.c b/drivers/phy/samsung/phy-exynos5250-sata.c
index 4dd7324d91b2..5077987570fd 100644
--- a/drivers/phy/samsung/phy-exynos5250-sata.c
+++ b/drivers/phy/samsung/phy-exynos5250-sata.c
@@ -190,6 +190,7 @@ static int exynos_sata_phy_probe(struct platform_device *pdev)
 		return -EINVAL;
 
 	sata_phy->client = of_find_i2c_device_by_node(node);
+	of_node_put(node);
 	if (!sata_phy->client)
 		return -EPROBE_DEFER;
 
-- 
2.35.1




  parent reply	other threads:[~2022-05-04 16:59 UTC|newest]

Thread overview: 136+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-04 16:43 [PATCH 5.10 000/129] 5.10.114-rc1 review Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 001/129] floppy: disable FDRAWCMD by default Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 002/129] lightnvm: disable the subsystem Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 003/129] usb: mtu3: fix USB 3.0 dual-role-switch from device to host Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 004/129] USB: quirks: add a Realtek card reader Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 005/129] USB: quirks: add STRING quirk for VCOM device Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 006/129] USB: serial: whiteheat: fix heap overflow in WHITEHEAT_GET_DTR_RTS Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 007/129] USB: serial: cp210x: add PIDs for Kamstrup USB Meter Reader Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 008/129] USB: serial: option: add support for Cinterion MV32-WA/MV32-WB Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 009/129] USB: serial: option: add Telit 0x1057, 0x1058, 0x1075 compositions Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 010/129] xhci: Enable runtime PM on second Alderlake controller Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 011/129] xhci: stop polling roothubs after shutdown Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 012/129] xhci: increase usb U3 -> U0 link resume timeout from 100ms to 500ms Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 013/129] iio: dac: ad5592r: Fix the missing return value Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 014/129] iio: dac: ad5446: Fix read_raw not returning set value Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 015/129] iio: magnetometer: ak8975: Fix the error handling in ak8975_power_on() Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 016/129] iio: imu: inv_icm42600: Fix I2C init possible nack Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 017/129] usb: misc: fix improper handling of refcount in uss720_probe() Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 018/129] usb: typec: ucsi: Fix reuse of completion structure Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 019/129] usb: typec: ucsi: Fix role swapping Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 020/129] usb: gadget: uvc: Fix crash when encoding data for usb request Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 021/129] usb: gadget: configfs: clear deactivation flag in configfs_composite_unbind() Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 022/129] usb: dwc3: Try usb-role-switch first in dwc3_drd_init Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 023/129] usb: dwc3: core: Fix tx/rx threshold settings Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 024/129] usb: dwc3: core: Only handle soft-reset in DCTL Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 025/129] usb: dwc3: gadget: Return proper request status Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 026/129] usb: cdns3: Fix issue for clear halt endpoint Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 027/129] usb: phy: generic: Get the vbus supply Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 028/129] serial: imx: fix overrun interrupts in DMA mode Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 029/129] serial: 8250: Also set sticky MCR bits in console restoration Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 030/129] serial: 8250: Correct the clock for EndRun PTP/1588 PCIe device Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 031/129] arch_topology: Do not set llc_sibling if llc_id is invalid Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 032/129] pinctrl: samsung: fix missing GPIOLIB on ARM64 Exynos config Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 033/129] hex2bin: make the function hex_to_bin constant-time Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 034/129] hex2bin: fix access beyond string end Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 035/129] riscv: patch_text: Fixup last cpu should be master Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 036/129] x86/pci/xen: Disable PCI/MSI[-X] masking for XEN_HVM guests Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 037/129] iocost: dont reset the inuse weight of under-weighted debtors Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 038/129] video: fbdev: udlfb: properly check endpoint type Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 039/129] arm64: dts: meson: remove CPU opps below 1GHz for G12B boards Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 040/129] arm64: dts: meson: remove CPU opps below 1GHz for SM1 boards Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 041/129] iio:imu:bmi160: disable regulator in error path Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 042/129] mtd: rawnand: fix ecc parameters for mt7622 Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 043/129] USB: Fix xhci event ring dequeue pointer ERDP update issue Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 044/129] ARM: dts: imx6qdl-apalis: Fix sgtl5000 detection issue Greg Kroah-Hartman
2022-05-04 16:43 ` Greg Kroah-Hartman [this message]
2022-05-04 16:43 ` [PATCH 5.10 046/129] phy: samsung: exynos5250-sata: fix missing device put in probe error paths Greg Kroah-Hartman
2022-05-04 16:43 ` [PATCH 5.10 047/129] ARM: OMAP2+: Fix refcount leak in omap_gic_of_init Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 048/129] bus: ti-sysc: Make omap3 gpt12 quirk handling SoC specific Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 049/129] phy: ti: omap-usb2: Fix error handling in omap_usb2_enable_clocks Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 050/129] ARM: dts: at91: Map MCLK for wm8731 on at91sam9g20ek Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 051/129] ARM: dts: at91: sama5d4_xplained: fix pinctrl phandle name Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 052/129] phy: mapphone-mdm6600: Fix PM error handling in phy_mdm6600_probe Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 053/129] phy: ti: Add missing pm_runtime_disable() in serdes_am654_probe Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 054/129] ARM: dts: Fix mmc order for omap3-gta04 Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 055/129] ARM: dts: am3517-evm: Fix misc pinmuxing Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 056/129] ARM: dts: logicpd-som-lv: Fix wrong pinmuxing on OMAP35 Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 057/129] ipvs: correctly print the memory size of ip_vs_conn_tab Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 058/129] pinctrl: mediatek: moore: Fix build error Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 059/129] mtd: rawnand: Fix return value check of wait_for_completion_timeout Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 060/129] mtd: fix part field data corruption in mtd_info Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 061/129] pinctrl: stm32: Do not call stm32_gpio_get() for edge triggered IRQs in EOI Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 062/129] memory: renesas-rpc-if: Fix HF/OSPI data transfer in Manual Mode Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 063/129] net: dsa: Add missing of_node_put() in dsa_port_link_register_of Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 064/129] netfilter: nft_set_rbtree: overlap detection with element re-addition after deletion Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 065/129] bpf, lwt: Fix crash when using bpf_skb_set_tunnel_key() from bpf_xmit lwt hook Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 066/129] pinctrl: rockchip: fix RK3308 pinmux bits Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 067/129] tcp: md5: incorrect tcp_header_len for incoming connections Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 068/129] pinctrl: stm32: Keep pinctrl block clock enabled when LEVEL IRQ requested Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 069/129] tcp: ensure to use the most recently sent skb when filling the rate sample Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 070/129] wireguard: device: check for metadata_dst with skb_valid_dst() Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 071/129] sctp: check asoc strreset_chunk in sctp_generate_reconf_event Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 072/129] ARM: dts: imx6ull-colibri: fix vqmmc regulator Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 073/129] arm64: dts: imx8mn-ddr4-evk: Describe the 32.768 kHz PMIC clock Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 074/129] pinctrl: pistachio: fix use of irq_of_parse_and_map() Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 075/129] cpufreq: fix memory leak in sun50i_cpufreq_nvmem_probe Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 076/129] net: hns3: modify the return code of hclge_get_ring_chain_from_mbx Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 077/129] net: hns3: add validity check for message data length Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 078/129] net: hns3: add return value for mailbox handling in PF Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 079/129] net/smc: sync err code when tcp connection was refused Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 080/129] ip_gre: Make o_seqno start from 0 in native mode Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 081/129] ip6_gre: " Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 082/129] ip_gre, ip6_gre: Fix race condition on o_seqno in collect_md mode Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 083/129] tcp: fix potential xmit stalls caused by TCP_NOTSENT_LOWAT Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 084/129] tcp: make sure treq->af_specific is initialized Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 085/129] bus: sunxi-rsb: Fix the return value of sunxi_rsb_device_create() Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 086/129] clk: sunxi: sun9i-mmc: check return value after calling platform_get_resource() Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 087/129] net: bcmgenet: hide status block before TX timestamping Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 088/129] net: phy: marvell10g: fix return value on error Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 089/129] net: dsa: lantiq_gswip: Dont set GSWIP_MII_CFG_RMII_CLK Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 090/129] drm/amdkfd: Fix GWS queue count Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 091/129] drm/amd/display: Fix memory leak in dcn21_clock_source_create Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 092/129] tls: Skip tls_append_frag on zero copy size Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 093/129] bnx2x: fix napi API usage sequence Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 094/129] net: fec: add missing of_node_put() in fec_enet_init_stop_mode() Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 095/129] ixgbe: ensure IPsec VF<->PF compatibility Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 096/129] ibmvnic: fix miscellaneous checks Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 097/129] Revert "ibmvnic: Add ethtool private flag for driver-defined queue limits" Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 098/129] tcp: fix F-RTO may not work correctly when receiving DSACK Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 099/129] ASoC: Intel: soc-acpi: correct device endpoints for max98373 Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 100/129] ASoC: wm8731: Disable the regulator when probing fails Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 101/129] ext4: fix bug_on in start_this_handle during umount filesystem Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 102/129] x86: __memcpy_flushcache: fix wrong alignment if size > 2^32 Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 103/129] cifs: destage any unwritten data to the server before calling copychunk_write Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 104/129] drivers: net: hippi: Fix deadlock in rr_close() Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 105/129] powerpc/perf: Fix 32bit compile Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 106/129] zonefs: Fix management of open zones Greg Kroah-Hartman
2022-05-04 16:44 ` [PATCH 5.10 107/129] zonefs: Clear inode information flags on inode creation Greg Kroah-Hartman
2022-05-04 16:45 ` [PATCH 5.10 108/129] kasan: prevent cpu_quarantine corruption when CPU offline and cache shrink occur at same time Greg Kroah-Hartman
2022-05-04 16:45 ` [PATCH 5.10 109/129] drm/i915: Fix SEL_FETCH_PLANE_*(PIPE_B+) register addresses Greg Kroah-Hartman
2022-05-04 16:45 ` [PATCH 5.10 110/129] net: ethernet: stmmac: fix write to sgmii_adapter_base Greg Kroah-Hartman
2022-05-04 16:45 ` [PATCH 5.10 111/129] thermal: int340x: Fix attr.show callback prototype Greg Kroah-Hartman
2022-05-04 16:45 ` [PATCH 5.10 112/129] x86/cpu: Load microcode during restore_processor_state() Greg Kroah-Hartman
2022-05-04 16:45 ` [PATCH 5.10 113/129] perf symbol: Pass is_kallsyms to symbols__fixup_end() Greg Kroah-Hartman
2022-05-04 16:45 ` [PATCH 5.10 114/129] perf symbol: Update symbols__fixup_end() Greg Kroah-Hartman
2022-05-04 16:45 ` [PATCH 5.10 115/129] tty: n_gsm: fix restart handling via CLD command Greg Kroah-Hartman
2022-05-04 16:45 ` [PATCH 5.10 116/129] tty: n_gsm: fix decoupled mux resource Greg Kroah-Hartman
2022-05-04 16:45 ` [PATCH 5.10 117/129] tty: n_gsm: fix mux cleanup after unregister tty device Greg Kroah-Hartman
2022-05-04 16:45 ` [PATCH 5.10 118/129] tty: n_gsm: fix wrong signal octet encoding in convergence layer type 2 Greg Kroah-Hartman
2022-05-04 16:45 ` [PATCH 5.10 119/129] tty: n_gsm: fix malformed counter for out of frame data Greg Kroah-Hartman
2022-05-04 16:45 ` [PATCH 5.10 120/129] netfilter: nft_socket: only do sk lookups when indev is available Greg Kroah-Hartman
2022-05-04 16:45 ` [PATCH 5.10 121/129] tty: n_gsm: fix insufficient txframe size Greg Kroah-Hartman
2022-05-04 16:45 ` [PATCH 5.10 122/129] tty: n_gsm: fix wrong DLCI release order Greg Kroah-Hartman
2022-05-04 16:45 ` [PATCH 5.10 123/129] tty: n_gsm: fix missing explicit ldisc flush Greg Kroah-Hartman
2022-05-04 16:45 ` [PATCH 5.10 124/129] tty: n_gsm: fix wrong command retry handling Greg Kroah-Hartman
2022-05-04 16:45 ` [PATCH 5.10 125/129] tty: n_gsm: fix wrong command frame length field encoding Greg Kroah-Hartman
2022-05-04 16:45 ` [PATCH 5.10 126/129] tty: n_gsm: fix reset fifo race condition Greg Kroah-Hartman
2022-05-04 16:45 ` [PATCH 5.10 127/129] tty: n_gsm: fix incorrect UA handling Greg Kroah-Hartman
2022-05-04 16:45 ` [PATCH 5.10 128/129] tty: n_gsm: fix software flow control handling Greg Kroah-Hartman
2022-05-04 16:45 ` [PATCH 5.10 129/129] perf symbol: Remove arch__symbols__fixup_end() Greg Kroah-Hartman
2022-05-04 20:31 ` [PATCH 5.10 000/129] 5.10.114-rc1 review Pavel Machek
2022-05-05  0:54 ` Samuel Zou
2022-05-05  3:27 ` Florian Fainelli
2022-05-05  9:59 ` Jon Hunter
2022-05-05 12:07 ` Naresh Kamboju
2022-05-05 21:42 ` Guenter Roeck

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=20220504153024.744039124@linuxfoundation.org \
    --to=gregkh@linuxfoundation.org \
    --cc=krzysztof.kozlowski@linaro.org \
    --cc=linmq006@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sashal@kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=vkoul@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;
as well as URLs for NNTP newsgroup(s).