linux/drivers/gpu/drm
Dmitry Baryshkov d7fd8634f4 drm/msm: use strscpy instead of strncpy
Using strncpy can result in non-NULL-terminated destination string. Use
strscpy instead. This fixes following warning:

drivers/gpu/drm/msm/msm_fence.c: In function ‘msm_fence_context_alloc’:
drivers/gpu/drm/msm/msm_fence.c:25:9: warning: ‘strncpy’ specified bound 32 equals destination size [-Wstringop-truncation]
   25 |         strncpy(fctx->name, name, sizeof(fctx->name));
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Fixes: f97decac5f ("drm/msm: Support multiple ringbuffers")
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Reviewed-by: Abhinav Kumar <quic_abhinavk@quicinc.com>
Patchwork: https://patchwork.freedesktop.org/patch/518787/
Link: https://lore.kernel.org/r/20230118020152.1689213-1-dmitry.baryshkov@linaro.org
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
2023-01-24 10:11:52 +02:00
..
amd drm-misc-next for v6.3: 2023-01-04 14:59:25 +01:00
arm
armada
aspeed
ast drm/ast: Init iosys_map pointer as I/O memory for damage handling 2022-12-20 17:15:06 +01:00
atmel-hlcdc drm: atmel-hlcdc: Remove #ifdef guards for PM related functions 2022-12-12 12:30:56 +00:00
bridge drm-misc-next for v6.3: 2023-01-04 14:59:25 +01:00
display drm/display/dp_mst: Fix payload addition on a disconnected sink 2022-12-16 16:55:29 +02:00
etnaviv MM patches for 6.2-rc1. 2022-12-13 19:29:45 -08:00
exynos drm-misc-next for v6.3: 2023-01-04 14:59:25 +01:00
fsl-dcu hardening updates for v6.2-rc1 2022-12-14 12:20:00 -08:00
gma500
gud drm/gud: Fix missing include 2022-12-08 12:32:25 +01:00
hisilicon
hyperv
i2c drm-misc-next for v6.3: 2023-01-04 14:59:25 +01:00
i810
i915 drm-misc-next for v6.3: 2023-01-04 14:59:25 +01:00
imx drm/imx: move IPUv3 driver into separate subdirectory 2022-12-16 18:40:29 +01:00
ingenic
kmb
lib
lima
logicvc
mcde
mediatek drm-misc-next for v6.3: 2023-01-04 14:59:25 +01:00
meson drm/meson: dw-hdmi: Use devm_regulator_*get_enable*() 2022-12-01 09:38:48 +01:00
mga
mgag200
msm drm/msm: use strscpy instead of strncpy 2023-01-24 10:11:52 +02:00
mxsfb
nouveau drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
omapdrm drm/omap: dsi: Fix excessive stack usage 2022-12-16 19:24:39 +02:00
panel drm/panel: add the orisetech ota5601a 2022-12-29 22:05:03 +01:00
panfrost drm: panfrost: Remove #ifdef guards for PM related functions 2022-12-12 13:07:01 +00:00
pl111
qxl drm/qxl: stop using ttm_bo_wait 2022-12-19 09:50:06 +01:00
r128
radeon drm-misc-next for v6.3: 2023-01-04 14:59:25 +01:00
rcar-du drm-misc-next for v6.3: 2023-01-04 14:59:25 +01:00
rockchip
savage
scheduler drm-misc-next for 6.2: 2023-01-03 09:48:04 +01:00
shmobile drm: shmobile: Remove #ifdef guards for PM related functions 2022-12-12 13:07:02 +00:00
sis
solomon
sprd drm/sprd: remove redundant error logging 2022-12-20 09:26:18 +01:00
sti hardening updates for v6.2-rc1 2022-12-14 12:20:00 -08:00
stm
sun4i
tdfx
tegra drm/tegra: Changes for v6.2-rc1 2022-11-30 13:08:58 +10:00
tests drm-misc-next for v6.3: 2023-01-04 14:59:25 +01:00
tidss drm: tidss: Fix pixel format definition 2022-12-16 19:24:39 +02:00
tilcdc drm: tilcdc: Remove #ifdef guards for PM related functions 2022-12-12 13:07:02 +00:00
tiny drm/tiny: ili9486: Do not assume 8-bit only SPI controllers 2023-01-02 11:02:08 +01:00
ttm drm/ttm: use ttm_bo_wait_ctx instead of ttm_bo_wait 2022-12-06 13:02:20 +01:00
tve200
udl
v3d drm/v3d: use new debugfs device-centered functions 2022-12-22 14:59:23 -03:00
vboxvideo drm: vboxvideo: Remove #ifdef guards for PM related functions 2022-12-12 13:07:03 +00:00
vc4 drm/vc4: drop all currently held locks if deadlock happens 2023-01-02 11:38:28 +01:00
vgem
via
virtio drm/virtio: Spiff out cmd queue/response traces 2023-01-02 17:51:27 +03:00
vkms drm/vkms: use new debugfs device-centered functions 2022-12-22 14:59:50 -03:00
vmwgfx drm-misc-next for v6.3: 2023-01-04 14:59:25 +01:00
xen
xlnx
Kconfig drm/tests: Introduce a config option for the KUnit helpers 2022-12-08 09:41:27 +01:00
Makefile drm-misc-next for v6.3: 2023-01-04 14:59:25 +01:00
drm_agpsupport.c
drm_aperture.c
drm_atomic.c drm: use new debugfs device-centered functions on DRM core files 2022-12-22 14:58:21 -03:00
drm_atomic_helper.c
drm_atomic_state_helper.c
drm_atomic_uapi.c
drm_auth.c
drm_blend.c
drm_bridge.c drm/bridge: Document the expected behaviour of DSI host controllers 2022-12-08 09:56:57 +01:00
drm_bridge_connector.c
drm_buddy.c
drm_bufs.c
drm_cache.c
drm_client.c drm: use new debugfs device-centered functions on DRM core files 2022-12-22 14:58:21 -03:00
drm_client_modeset.c
drm_color_mgmt.c
drm_connector.c
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: create debugfs late register functions 2022-12-22 14:58:55 -03:00
drm_debugfs_crc.c
drm_displayid.c
drm_dma.c
drm_drv.c drm-misc-next for v6.3: 2023-01-04 14:59:25 +01:00
drm_dumb_buffers.c
drm_edid.c
drm_edid_load.c
drm_encoder.c
drm_encoder_slave.c
drm_fb_dma_helper.c
drm_fb_helper.c
drm_fbdev_generic.c
drm_file.c
drm_flip_work.c
drm_format_helper.c
drm_fourcc.c
drm_framebuffer.c drm: use new debugfs device-centered functions on DRM core files 2022-12-22 14:58:21 -03:00
drm_gem.c
drm_gem_atomic_helper.c drm/simple-kms: Remove drm_gem_simple_display_pipe_prepare_fb() 2022-12-05 13:35:37 +01:00
drm_gem_dma_helper.c
drm_gem_framebuffer_helper.c
drm_gem_shmem_helper.c drm-misc-next for 6.2: 2023-01-03 09:48:04 +01:00
drm_gem_ttm_helper.c drm/ttm: merge ttm_bo_api.h and ttm_bo_driver.h v2 2022-12-06 12:54:14 +01:00
drm_gem_vram_helper.c drm: use new debugfs device-centered functions on DRM core files 2022-12-22 14:58:21 -03:00
drm_hashtab.c
drm_internal.h drm/debugfs: create debugfs late register functions 2022-12-22 14:58:55 -03:00
drm_ioc32.c
drm_ioctl.c
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-dbi: Support separate I/O regulator 2022-12-14 14:57:09 +01:00
drm_mipi_dsi.c
drm_mm.c
drm_mode_config.c drm/debugfs: create debugfs late register functions 2022-12-22 14:58:55 -03:00
drm_mode_object.c
drm_modes.c drm/modes: Use strscpy() to copy command-line mode name 2022-12-01 11:12:44 +01:00
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 DynaBook K50 2022-12-07 17:39:23 +01:00
drm_pci.c
drm_plane.c
drm_plane_helper.c
drm_prime.c
drm_print.c
drm_privacy_screen.c
drm_privacy_screen_x86.c
drm_probe_helper.c
drm_property.c
drm_rect.c
drm_scatter.c
drm_self_refresh_helper.c
drm_simple_kms_helper.c drm/simple-kms: Remove drm_gem_simple_display_pipe_prepare_fb() 2022-12-05 13:35:37 +01:00
drm_syncobj.c
drm_sysfs.c Driver Core changes for 6.2-rc1 2022-12-16 03:54:54 -08:00
drm_trace.h
drm_trace_points.c
drm_vblank.c
drm_vblank_work.c
drm_vm.c
drm_vma_manager.c
drm_writeback.c