WSL2-Linux-Kernel/drivers/gpu/drm
Mario Limonciello bd79de8bd3 drm/amd: Fix an error handling mistake in psp_sw_init()
[ Upstream commit c01aebeef3 ]

If the second call to amdgpu_bo_create_kernel() fails, the memory
allocated from the first call should be cleared.  If the third call
fails, the memory from the second call should be cleared.

Fixes: b95b539168 ("drm/amdgpu/psp: move PSP memory alloc from hw_init to sw_init")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-08-03 10:22:39 +02:00
..
amd drm/amd: Fix an error handling mistake in psp_sw_init() 2023-08-03 10:22:39 +02:00
arm malidp: Fix NULL vs IS_ERR() checking 2023-03-11 13:57:40 +01:00
armada drm/armada: Fix a potential double free in an error handling path 2023-04-20 12:13:53 +02:00
aspeed
ast drm/ast: Fix ARM compatibility 2023-06-09 10:32:20 +02:00
atmel-hlcdc
bridge drm/bridge: ti-sn65dsi86: Fix auxiliary bus lifetime 2023-07-23 13:47:39 +02:00
etnaviv drm/etnaviv: fix reference leak when mmaping imported buffer 2023-04-05 11:25:00 +02:00
exynos drm/exynos: fix race condition UAF in exynos_g2d_exec_ioctl 2023-06-28 10:29:53 +02:00
fsl-dcu drm/fsl-dcu: Fix return type of fsl_dcu_drm_connector_mode_valid() 2022-12-31 13:14:44 +01:00
gma500 drm/gma500: Fix BUG: sleeping function called from invalid context errors 2022-09-28 11:11:55 +02:00
gud
hisilicon drm/hisilicon: Add depends on MMU 2022-09-28 11:11:50 +02:00
hyperv drm/hyperv: Don't overwrite dirt_needed value set by host 2023-05-17 11:50:15 +02:00
i2c
i810
i915 drm/i915: Fix one wrong caching mode enum usage 2023-07-23 13:47:44 +02:00
imx drm/imx: ipuv3-plane: Fix overlay plane width 2023-01-12 11:59:15 +01:00
ingenic drm/ingenic: Fix missing platform_driver_unregister() call in ingenic_drm_init() 2023-01-12 11:59:00 +01:00
kmb
lib
lima drm/lima/lima_drv: Add missing unwind goto in lima_pdev_probe() 2023-05-11 23:00:23 +09:00
mcde
mediatek drm/mediatek: Clean dangling pointer on bind error path 2023-03-10 09:39:26 +01:00
meson drm/meson: fix missing component unbind on bind errors 2023-03-30 12:47:59 +02:00
mga
mgag200 drm/mgag200: Fix PLL setup for G200_SE_A rev >=4 2023-01-12 11:59:20 +01:00
msm drm/msm: Fix IS_ERR_OR_NULL() vs NULL check in a5xx_submit_in_rb() 2023-08-03 10:22:38 +02:00
mxsfb drm: mxsfb: DRM_MXSFB should depend on ARCH_MXS || ARCH_MXC 2023-03-10 09:39:19 +01:00
nouveau drm/nouveau: add nv_encoder pointer check for NULL 2023-06-21 15:59:18 +02:00
omapdrm drm/omap: dsi: Fix excessive stack usage 2023-03-10 09:39:52 +01:00
panel drm/panel: simple: Add Powertip PH800480T013 drm_display_mode flags 2023-07-23 13:47:39 +02:00
panfrost drm/panfrost: Fix the panfrost_mmu_map_fault_addr() error path 2023-04-13 16:48:25 +02:00
pl111 drm:pl111: Add of_node_put() when breaking out of for_each_available_child_of_node() 2022-10-26 12:34:51 +02:00
qxl
r128
radeon drm/radeon: Fix integer overflow in radeon_cs_parser_init 2023-07-27 08:46:57 +02:00
rcar-du drm/rcar: stop using 'imply' for dependencies 2023-06-09 10:32:34 +02:00
rockchip drm/rockchip: vop: Leave vblank enabled in self-refresh 2023-07-23 13:47:52 +02:00
savage
scheduler
selftests
shmobile
sis
sti drm/sti: Fix return type of sti_{dvo,hda,hdmi}_connector_mode_valid() 2022-12-31 13:14:44 +01:00
stm
sun4i drm: sun4i_tcon: use devm_clk_get_enabled in `sun4i_tcon_init_clocks` 2023-07-23 13:46:59 +02:00
tdfx
tegra drm/tegra: Avoid potential 32-bit integer overflow 2023-05-24 17:36:44 +01:00
tidss drm: tidss: Fix pixel format definition 2023-03-10 09:39:20 +01:00
tilcdc
tiny drm/cirrus: NULL-check pipe->plane.state->fb in cirrus_pipe_update() 2023-03-30 12:47:52 +02:00
ttm drm/ttm: never consider pinned BOs for eviction&swap 2023-08-03 10:22:29 +02:00
tve200
udl drm/udl: Restore display mode on resume 2022-10-26 12:34:24 +02:00
v3d
vboxvideo
vc4 drm/vc4: hdmi: Correct interlaced timings again 2023-03-10 09:39:21 +01:00
vgem drm/vgem: add missing mutex_destroy 2023-05-11 23:00:20 +09:00
via
virtio drm/virtio: Fix error code in virtio_gpu_object_shmem_init() 2023-03-11 13:57:40 +01:00
vkms drm/vkms: Fix null-ptr-deref in vkms_release() 2023-03-10 09:39:20 +01:00
vmwgfx treewide: fix up files incorrectly marked executable 2023-02-01 08:27:29 +01:00
xen
xlnx
zte
Kconfig
Makefile
drm_agpsupport.c
drm_aperture.c
drm_atomic.c drm/atomic: Fix potential use-after-free in nonblocking commits 2023-07-23 13:47:58 +02:00
drm_atomic_helper.c drm/atomic: Allow vblank-enabled + self-refresh "disable" 2023-07-23 13:47:52 +02:00
drm_atomic_state_helper.c
drm_atomic_uapi.c
drm_auth.c
drm_blend.c
drm_bridge.c drm/bridge: Avoid uninitialized variable warning 2022-10-26 12:34:50 +02:00
drm_bridge_connector.c
drm_bufs.c
drm_cache.c
drm_client.c
drm_client_modeset.c drm/client: Fix memory leak in drm_client_modeset_probe 2023-07-27 08:46:55 +02:00
drm_color_mgmt.c
drm_connector.c drm/connector: send hotplug uevent on connector cleanup 2023-01-12 11:58:59 +01:00
drm_context.c
drm_crtc.c
drm_crtc_helper.c
drm_crtc_helper_internal.h
drm_crtc_internal.h
drm_damage_helper.c
drm_debugfs.c
drm_debugfs_crc.c
drm_displayid.c drm/displayid: add displayid_get_header() and check bounds better 2023-05-24 17:36:43 +01:00
drm_dma.c
drm_dp_aux_bus.c
drm_dp_aux_dev.c
drm_dp_cec.c
drm_dp_dual_mode_helper.c drm/display: Don't assume dual mode adaptors support i2c sub-addressing 2022-12-02 17:41:00 +01:00
drm_dp_helper.c drm/dp: Don't rewrite link config when setting phy test pattern 2022-10-26 12:35:42 +02:00
drm_dp_mst_topology.c drm/display/dp_mst: Fix down message handling after a packet reception error 2023-03-11 13:57:39 +01:00
drm_dp_mst_topology_internal.h
drm_drv.c drm/drv: Fix potential memory leak in drm_dev_init() 2022-11-26 09:24:36 +01:00
drm_dsc.c
drm_dumb_buffers.c
drm_edid.c drm/edid: fix AVI infoframe aspect ratio handling 2023-03-10 09:40:14 +01:00
drm_edid_load.c
drm_encoder.c
drm_encoder_slave.c
drm_fb_cma_helper.c
drm_fb_helper.c drm/fb-helper: set x/yres_virtual in drm_fb_helper_check_var 2023-05-01 08:23:23 +09:00
drm_file.c
drm_flip_work.c
drm_format_helper.c
drm_fourcc.c drm/fourcc: Add missing big-endian XRGB1555 and RGB565 formats 2023-03-10 09:39:19 +01:00
drm_framebuffer.c
drm_gem.c drm/gem: Fix GEM handle release errors 2022-09-15 11:30:01 +02:00
drm_gem_atomic_helper.c
drm_gem_cma_helper.c
drm_gem_framebuffer_helper.c
drm_gem_shmem_helper.c drm/shmem-helper: Remove another errant put in error path 2023-03-22 13:31:34 +01:00
drm_gem_ttm_helper.c
drm_gem_vram_helper.c drm/vram-helper: fix function names in vram helper doc 2023-07-23 13:46:58 +02:00
drm_hashtab.c
drm_hdcp.c
drm_internal.h drm: Fix potential null-ptr-deref in drm_vblank_destroy_worker() 2022-11-26 09:24:37 +01:00
drm_ioc32.c
drm_ioctl.c drm: Prevent drm_copy_field() to attempt copying a NULL pointer 2022-10-26 12:35:38 +02:00
drm_irq.c
drm_kms_helper_common.c
drm_lease.c
drm_legacy.h
drm_legacy_misc.c
drm_lock.c
drm_managed.c
drm_memory.c
drm_mipi_dbi.c
drm_mipi_dsi.c drm/mipi-dsi: Set the fwnode for mipi_dsi_device 2023-05-24 17:36:41 +01:00
drm_mm.c
drm_mode_config.c drm: Fix potential null-ptr-deref due to drmm_mode_config_init() 2023-03-10 09:39:19 +01:00
drm_mode_object.c
drm_modes.c
drm_modeset_helper.c
drm_modeset_lock.c
drm_of.c
drm_panel.c
drm_panel_orientation_quirks.c drm: panel-orientation-quirks: Add quirk for Lenovo Yoga Book X90F 2023-04-20 12:13:54 +02:00
drm_pci.c
drm_plane.c
drm_plane_helper.c
drm_prime.c drm/gem: Fix GEM handle release errors 2022-09-15 11:30:01 +02:00
drm_print.c
drm_probe_helper.c drm/probe-helper: Cancel previous job before starting new one 2023-05-11 23:00:20 +09:00
drm_property.c
drm_rect.c
drm_scatter.c
drm_scdc_helper.c
drm_self_refresh_helper.c
drm_simple_kms_helper.c
drm_syncobj.c
drm_sysfs.c
drm_trace.h
drm_trace_points.c
drm_vblank.c
drm_vblank_work.c
drm_vm.c
drm_vma_manager.c
drm_writeback.c