linux/drivers/gpu/drm
Lu Yao 3663c8d1f3
drm/xe/oa: Remove sysfs entry on idr_alloc failure in xe_oa_add_config_ioctl()
If idr_alloc() fails after create_dynamic_oa_sysfs_entry() has
succeeded, the error path frees the OA config without removing the
metrics sysfs group.

Remove the sysfs group before releasing the config, and fix up the
misleading error message copied from the sysfs creation failure path.

Fixes: cdf02fe1a9 ("drm/xe/oa/uapi: Add/remove OA config perf ops")
Signed-off-by: Lu Yao <yaolu@kylinos.cn>
Link: https://patch.msgid.link/20260831014218.28515-1-yaolu@kylinos.cn
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
(cherry picked from commit 2c6fbda5fd)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
2026-09-01 11:31:00 -04:00
..
adp
amd drm next/fixes for 7.3-rc1 2026-08-28 16:37:55 -07:00
arm
armada
aspeed
ast
atmel-hlcdc
bridge Linux 7.2 2026-08-20 10:58:44 +10:00
ci
clients Linux 7.2 2026-08-20 10:58:44 +10:00
display Linux 7.2 2026-08-20 10:58:44 +10:00
etnaviv drm for 7.3-rc1 2026-08-21 08:41:00 -07:00
exynos drm for 7.3-rc1 2026-08-21 08:41:00 -07:00
fsl-dcu
gma500 drm for 7.3-rc1 2026-08-21 08:41:00 -07:00
gud
hisilicon
hyperv
i915 mm.git review status for linus..mm-stable 2026-08-27 09:17:06 -07:00
imagination power sequencing updates for v7.3-rc1 2026-08-26 08:45:09 -07:00
imx
ingenic
kmb
lima Linux 7.2 2026-08-20 10:58:44 +10:00
logicvc
loongson
mcde
mediatek Linux 7.2 2026-08-20 10:58:44 +10:00
meson
mgag200
msm drm next/fixes for 7.3-rc1 2026-08-28 16:37:55 -07:00
mxsfb
nouveau drm for 7.3-rc1 2026-08-21 08:41:00 -07:00
nova drm for 7.3-rc1 2026-08-21 08:41:00 -07:00
omapdrm drm for 7.3-rc1 2026-08-21 08:41:00 -07:00
panel Linux 7.2 2026-08-20 10:58:44 +10:00
panfrost Linux 7.2 2026-08-20 10:58:44 +10:00
panthor mm.git review status for linus..mm-stable 2026-08-27 09:17:06 -07:00
pl111
qxl
radeon drm/radeon: fix internal display on iMac11, 1 (RV770/DCE3.1) 2026-08-19 10:12:25 -04:00
renesas
rockchip drm for 7.3-rc1 2026-08-21 08:41:00 -07:00
scheduler Linux 7.2 2026-08-20 10:58:44 +10:00
sitronix
solomon
sprd
sti
stm
sun4i
sysfb
tegra drm for 7.3-rc1 2026-08-21 08:41:00 -07:00
tests Linux 7.2 2026-08-20 10:58:44 +10:00
tidss
tilcdc
tiny Linux 7.2 2026-08-20 10:58:44 +10:00
ttm mm.git review status for linus..mm-stable 2026-08-27 09:17:06 -07:00
tve200
tyr drm for 7.3-rc1 2026-08-21 08:41:00 -07:00
udl
v3d Linux 7.2 2026-08-20 10:58:44 +10:00
vboxvideo
vc4 Linux 7.2 2026-08-20 10:58:44 +10:00
verisilicon
vgem
virtio drm for 7.3-rc1 2026-08-21 08:41:00 -07:00
vkms
vmwgfx mm.git review status for mm-hotfixes-stable..mm-stable 2026-08-20 18:17:08 -07:00
xe drm/xe/oa: Remove sysfs entry on idr_alloc failure in xe_oa_add_config_ioctl() 2026-09-01 11:31:00 -04:00
xen
xlnx
drm_atomic_helper.c
drm_atomic_state_helper.c
drm_atomic_uapi.c
drm_atomic.c
drm_auth.c
drm_blend.c
drm_bridge_helper.c
drm_bridge.c
drm_buddy.c
drm_cache.c
drm_client_event.c
drm_client_modeset.c
drm_client_sysrq.c
drm_client.c
drm_color_mgmt.c
drm_colorop.c
drm_connector.c
drm_crtc_helper_internal.h
drm_crtc_helper.c
drm_crtc_internal.h
drm_crtc.c
drm_damage_helper.c
drm_debugfs_crc.c
drm_debugfs.c
drm_displayid_internal.h
drm_displayid.c
drm_draw_internal.h
drm_draw.c
drm_drv.c DRM Rust changes for v7.3-rc1 2026-08-10 14:48:11 +10:00
drm_dumb_buffers.c
drm_edid_load.c
drm_edid.c
drm_eld.c
drm_encoder.c
drm_exec.c
drm_fb_dma_helper.c
drm_fb_helper.c Linux 7.2 2026-08-20 10:58:44 +10:00
drm_fbdev_dma.c
drm_fbdev_shmem.c
drm_fbdev_ttm.c
drm_file.c
drm_flip_work.c
drm_format_helper.c
drm_format_internal.h
drm_fourcc.c
drm_framebuffer.c
drm_gem_atomic_helper.c
drm_gem_dma_helper.c
drm_gem_framebuffer_helper.c
drm_gem_shmem_helper.c mm.git review status for linus..mm-stable 2026-08-27 09:17:06 -07:00
drm_gem_ttm_helper.c
drm_gem_vram_helper.c
drm_gem.c drm for 7.3-rc1 2026-08-21 08:41:00 -07:00
drm_gpusvm.c drm for 7.3-rc1 2026-08-21 08:41:00 -07:00
drm_gpuvm.c
drm_internal.h
drm_ioc32.c
drm_ioctl.c
drm_kms_helper_common.c
drm_lease.c
drm_managed.c
drm_mipi_dbi.c
drm_mipi_dsi.c
drm_mm.c
drm_mode_config.c drm: use drm_warn() in validate_blend_mode_for_alpha_formats() 2026-08-14 14:43:23 +01:00
drm_mode_object.c
drm_modes.c
drm_modeset_helper.c
drm_modeset_lock.c
drm_of.c
drm_pagemap_util.c
drm_pagemap.c
drm_panel_backlight_quirks.c
drm_panel_orientation_quirks.c
drm_panel.c
drm_panic_qr.rs
drm_panic.c
drm_pci.c
drm_plane_helper.c
drm_plane.c
drm_prime.c
drm_print.c
drm_privacy_screen_x86.c
drm_privacy_screen.c
drm_probe_helper.c
drm_property.c
drm_ras_genl_family.c
drm_ras_nl.c
drm_ras_nl.h
drm_ras.c
drm_rect.c
drm_self_refresh_helper.c
drm_simple_kms_helper.c
drm_suballoc.c
drm_syncobj.c
drm_sysfs.c
drm_trace_points.c
drm_trace.h
drm_vblank_helper.c
drm_vblank_work.c
drm_vblank.c
drm_vma_manager.c
drm_writeback.c
Kconfig
Kconfig.debug
Makefile