linux_dsm_epyc7002/drivers/soc
Andrey Smirnov 050f810e23 soc: imx: gpcv2: Do not pass static memory as platform data
Platform device core assumes the ownership of dev.platform_data as
well as that it is dynamically allocated and it will try to kfree it
as a part of platform_device_release(). Change the code to use
platform_device_add_data() n instead of a pointer to a static memory
to avoid causing a BUG() when calling platform_device_put().

The problem can be reproduced by artificially enabling the error path
of platform_device_add() call (around line 357).

Note that this change also allows us to constify imx7_pgc_domains,
since we no longer need to be able to modify it.

Cc: Stefan Agner <stefan@agner.ch>
Cc: Lucas Stach <l.stach@pengutronix.de>
Cc: linux-arm-kernel@lists.infradead.org
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
2018-04-23 17:03:02 +08:00
..
actions soc: actions: sps: Add S700 2017-11-27 23:11:01 +01:00
amlogic amlogic: meson-gx-socinfo: Update soc ids 2018-03-19 16:40:26 -07:00
atmel drivers: soc: atmel: Add basic support for new sama5d2 SiPs 2017-09-17 19:45:59 +02:00
bcm soc: bcm: brcmstb: Be multi-platform compatible 2018-01-15 15:47:07 +01:00
dove License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
fsl soc/fsl/qbman: fix issue in qman_delete_cgr_safe() 2018-03-14 13:16:23 -04:00
gemini soc: Add SoC driver for Gemini 2018-01-04 17:01:53 +01:00
imx soc: imx: gpcv2: Do not pass static memory as platform data 2018-04-23 17:03:02 +08:00
lantiq MIPS: lantiq: Add a GPHY driver which uses the RCU syscon-mfd 2017-09-04 21:19:02 +02:00
mediatek soc: mediatek: update power domain data of MT2712 2018-03-19 02:29:05 +01:00
qcom remoteproc updates for v4.17 2018-04-10 12:09:27 -07:00
renesas soc: renesas: rcar-rst: Add support for R-Car M3-N 2018-02-23 15:55:01 +01:00
rockchip soc: rockchip: power-domain: Add a sanity check on pd->num_clks 2018-03-05 19:42:29 +01:00
samsung The large diff this time around is from the addition of a new clk driver 2018-04-13 15:51:06 -07:00
sunxi drivers: soc: sunxi: add support for A64 and its SRAM C 2017-08-18 14:30:21 +08:00
tegra soc/tegra: pmc: Use the new reset APIs to manage reset controllers 2018-03-19 09:42:39 +01:00
ti soc: ti: Add pm33xx driver for basic suspend support 2018-02-27 08:53:46 -08:00
ux500 ARM: ux500: move soc_id driver to drivers/soc 2016-07-12 11:24:09 +02:00
versatile soc: versatile: remove unnecessary static in realview_soc_probe() 2017-08-16 22:28:27 +02:00
xilinx soc: xilinx: Fix Kconfig alignment 2018-01-16 15:50:21 +01:00
zte soc: zte: Restrict SOC_ZTE to ARCH_ZX or COMPILE_TEST 2017-07-27 13:12:34 +02:00
Kconfig soc: xilinx: Create folder structure for soc specific drivers 2018-01-08 13:42:39 +01:00
Makefile ARM: SoC driver updates for 4.16 2018-02-01 16:35:31 -08:00