linux_dsm_epyc7002/drivers/gpu/drm
Gen Zhang 9f1f1a2dab drm/edid: Fix a missing-check bug in drm_load_edid_firmware()
In drm_load_edid_firmware(), fwstr is allocated by kstrdup(). And fwstr
is dereferenced in the following codes. However, memory allocation
functions such as kstrdup() may fail and returns NULL. Dereferencing
this null pointer may cause the kernel go wrong. Thus we should check
this kstrdup() operation.
Further, if kstrdup() returns NULL, we should return ERR_PTR(-ENOMEM) to
the caller site.

Signed-off-by: Gen Zhang <blackgod016574@gmail.com>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190524023222.GA5302@zhanggen-UX430UQ
2019-05-24 21:01:33 +03:00
..
amd Merge drm/drm-next into drm-misc-next 2019-05-22 16:08:21 -04:00
arc
arm drm: Remove users of drm_format_info_plane_cpp 2019-05-20 13:35:56 +02:00
armada drm: Remove users of drm_format_num_planes 2019-05-20 13:32:57 +02:00
aspeed drm: aspeed: Clean up Kconfig options 2019-04-16 16:39:24 +02:00
ast drm: Rename reserve/unreserve to lock/unlock in GEM VRAM helpers 2019-05-22 12:43:29 +02:00
atmel-hlcdc drm: Remove users of drm_format_(horz|vert)_chroma_subsampling 2019-05-20 13:33:11 +02:00
bochs drm/bochs: Fix connector leak during driver unload 2019-05-21 10:06:04 +02:00
bridge Merge drm/drm-next into drm-misc-next 2019-05-22 16:08:21 -04:00
cirrus drm/cirrus: remove leftover files 2019-05-23 12:16:01 +02:00
etnaviv Merge remote-tracking branch 'drm/drm-next' into drm-misc-next 2019-05-09 10:19:03 +02:00
exynos drm/ipp: clean up debug messages 2019-04-24 11:23:20 +09:00
fsl-dcu - Fix-ups 2019-05-14 10:45:03 -07:00
gma500 drm/gma500: drop drmp.h include from all .c files 2019-05-22 14:13:40 +02:00
hisilicon drm: Reserve/unreserve GEM VRAM BOs from within pin/unpin functions 2019-05-17 13:14:11 +02:00
i2c
i810
i915 Merge drm/drm-next into drm-misc-next 2019-05-22 16:08:21 -04:00
imx Merge drm/drm-next into drm-misc-next 2019-05-22 16:08:21 -04:00
lib
lima drm/lima: add timeout to drm scheduler init 2019-05-21 20:47:36 +08:00
mcde drm/mcde: Add new driver for ST-Ericsson MCDE 2019-05-24 17:00:13 +02:00
mediatek drm/mediatek: Fix warning about unhandled enum value 2019-05-23 09:40:40 -04:00
meson drm/meson: imply dw-hdmi i2s audio for meson hdmi 2019-05-24 10:45:15 +02:00
mga
mgag200 drm: Rename reserve/unreserve to lock/unlock in GEM VRAM helpers 2019-05-22 12:43:29 +02:00
msm Merge drm/drm-next into drm-misc-next 2019-05-22 16:08:21 -04:00
mxsfb
nouveau Merge drm/drm-next into drm-misc-next 2019-05-22 16:08:21 -04:00
omapdrm drm: Replace instances of drm_format_info by drm_get_format_info 2019-05-20 13:35:40 +02:00
panel drm/panel: simple: Add FriendlyELEC HD702E 800x1280 LCD panel 2019-05-07 19:57:58 +02:00
panfrost Merge drm/drm-next into drm-misc-next 2019-05-22 16:08:21 -04:00
pl111 drm/pl111: Initialize clock spinlock early 2019-05-15 00:15:45 +02:00
qxl drm pull request for 5.2 2019-05-08 21:35:19 -07:00
r128
radeon Merge drm/drm-next into drm-misc-next 2019-05-22 16:08:21 -04:00
rcar-du drm: rcar-du: lvds: Set LVEN and LVRES bits together on D3 2019-03-28 06:12:42 +02:00
rockchip Merge drm/drm-next into drm-misc-next 2019-05-22 16:08:21 -04:00
savage
scheduler Merge drm/drm-next into drm-misc-next 2019-05-22 16:08:21 -04:00
selftests drm/selftests/mm: Switch to bitmap_zalloc() 2019-03-20 17:36:06 +00:00
shmobile video: backlight: Remove useless BACKLIGHT_LCD_SUPPORT kernel symbol 2019-04-03 11:15:57 +01:00
sis
sti
stm drm/stm: dsi: check hardware version 2019-05-24 10:30:46 +02:00
sun4i Merge drm/drm-next into drm-misc-next 2019-05-22 16:08:21 -04:00
tdfx
tegra Merge drm/drm-next into drm-misc-next 2019-05-22 16:08:21 -04:00
tilcdc video: backlight: Remove useless BACKLIGHT_LCD_SUPPORT kernel symbol 2019-04-03 11:15:57 +01:00
tinydrm drm/tinydrm: Fix fbdev pixel format 2019-04-11 16:16:06 +02:00
ttm drm pull request for 5.2 2019-05-08 21:35:19 -07:00
tve200
udl drm/udl: move to embedding drm device inside udl device. 2019-04-24 13:48:45 +10:00
v3d drm/v3d: Fix and extend MMU error handling. 2019-05-16 09:24:52 -07:00
vboxvideo Merge drm/drm-next into drm-misc-next 2019-05-22 16:08:21 -04:00
vc4 drm/vc4: Allocate binner bo when starting to use the V3D 2019-05-23 17:32:21 +02:00
vgem
via mm/gup: change GUP fast to use flags rather than a write 'bool' 2019-05-14 09:47:46 -07:00
virtio drm/virtio: remove irrelevant DRM_UNLOCKED flag 2019-05-23 12:16:01 +02:00
vkms Merge remote-tracking branch 'drm/drm-next' into drm-misc-next 2019-05-09 10:19:03 +02:00
vmwgfx drm pull request for 5.2 2019-05-08 21:35:19 -07:00
xen drm/xen/xen_drm_front_gem.c: convert to use vm_map_pages() 2019-05-14 09:47:50 -07:00
zte drm: Remove users of drm_format_info_plane_cpp 2019-05-20 13:35:56 +02:00
ati_pcigart.c
drm_agpsupport.c
drm_atomic_helper.c Merge remote-tracking branch 'drm/drm-next' into drm-misc-next 2019-05-09 10:19:03 +02:00
drm_atomic_state_helper.c drm: Add reference counting on HDR metadata blob 2019-05-22 22:46:35 +03:00
drm_atomic_uapi.c drm: Add HDR source metadata property 2019-05-22 22:46:35 +03:00
drm_atomic.c drm: Add drm_atomic_get_old/new_private_obj_state 2019-04-29 12:35:56 +01:00
drm_auth.c drm/fb-helper: Avoid race with DRM userspace 2019-05-14 16:11:28 +02:00
drm_blend.c
drm_bridge.c
drm_bufs.c drm/legacy: move map cleanups into drm_bufs.c 2019-04-24 12:32:13 +10:00
drm_cache.c
drm_client.c drm: Remove users of drm_format_info_plane_cpp 2019-05-20 13:35:56 +02:00
drm_color_mgmt.c
drm_connector.c drm: Add HDR source metadata property 2019-05-22 22:46:35 +03:00
drm_context.c
drm_crtc_helper_internal.h
drm_crtc_helper.c
drm_crtc_internal.h drm/atomic: Wire file_priv through for property changes 2019-04-24 11:30:52 +02:00
drm_crtc.c drm/lease: Make sure implicit planes are leased 2019-04-24 11:30:32 +02:00
drm_damage_helper.c
drm_debugfs_crc.c
drm_debugfs.c
drm_dma.c
drm_dp_aux_dev.c drm/dp: drmP.h include removal 2019-05-06 16:00:48 +03:00
drm_dp_cec.c
drm_dp_dual_mode_helper.c drm/dp: drmP.h include removal 2019-05-06 16:00:48 +03:00
drm_dp_helper.c drm/dp: drmP.h include removal 2019-05-06 16:00:48 +03:00
drm_dp_mst_topology.c drm/dp: drmP.h include removal 2019-05-06 16:00:48 +03:00
drm_drv.c drm/legacy: move init/destroy of struct members into legacy file 2019-04-24 12:32:18 +10:00
drm_dsc.c
drm_dumb_buffers.c
drm_edid_load.c drm/edid: Fix a missing-check bug in drm_load_edid_firmware() 2019-05-24 21:01:33 +03:00
drm_edid.c drm/edid: Fix docbook in drm_hdmi_infoframe_set_hdr_metadata() 2019-05-23 12:58:35 -04:00
drm_encoder_slave.c
drm_encoder.c
drm_fb_cma_helper.c
drm_fb_helper.c drm: Remove users of drm_format_info_plane_cpp 2019-05-20 13:35:56 +02:00
drm_file.c drm: Some ocd in drm_file.c 2019-05-09 11:40:20 +02:00
drm_flip_work.c
drm_format_helper.c drm: Remove users of drm_format_info_plane_cpp 2019-05-20 13:35:56 +02:00
drm_fourcc.c drm/fourcc: Pass the format_info pointer to drm_format_plane_width/height 2019-05-20 13:35:24 +02:00
drm_framebuffer.c
drm_gem_cma_helper.c drm/cma-helper: Fix drm_gem_cma_free_object() 2019-05-08 16:01:40 +02:00
drm_gem_framebuffer_helper.c
drm_gem_shmem_helper.c drm: shmem: Off by one in drm_gem_shmem_fault() 2019-04-01 10:44:34 -07:00
drm_gem_vram_helper.c drm: Assert that BO is locked in drm_gem_vram_{pin, unpin}_locked() 2019-05-22 12:43:30 +02:00
drm_gem.c drm/gem: Fix sphinx warnings 2019-04-25 10:02:10 -04:00
drm_hashtab.c
drm_internal.h drm/fb-helper: Avoid race with DRM userspace 2019-05-14 16:11:28 +02:00
drm_ioc32.c drm: allow removal of legacy codepaths (v4.1) 2019-04-24 12:33:15 +10:00
drm_ioctl.c drm: introduce a capability flag for syncobj timeline support 2019-05-02 12:36:47 +10:00
drm_irq.c drm: allow removal of legacy codepaths (v4.1) 2019-04-24 12:33:15 +10:00
drm_kms_helper_common.c
drm_lease.c drm/lease: Check for lessor outside of locks 2019-04-24 11:29:32 +02:00
drm_legacy_misc.c drm: Some ocd in drm_file.c 2019-05-09 11:40:20 +02:00
drm_legacy.h drm: Some ocd in drm_file.c 2019-05-09 11:40:20 +02:00
drm_lock.c drm/legacy: move lock cleanup for master into lock file (v2) 2019-04-24 12:32:15 +10:00
drm_memory.c drm: fallback to dma_alloc_coherent when memory encryption is active 2019-04-01 11:43:42 +02:00
drm_mipi_dsi.c
drm_mm.c drm: Simplify stacktrace handling 2019-04-29 12:37:53 +02:00
drm_mode_config.c drm: Expose "FB_DAMAGE_CLIPS" property to atomic aware user-space only 2019-04-16 15:13:23 -07:00
drm_mode_object.c drm/atomic: Wire file_priv through for property changes 2019-04-24 11:30:52 +02:00
drm_modes.c
drm_modeset_helper.c
drm_modeset_lock.c
drm_of.c
drm_panel_orientation_quirks.c
drm_panel.c
drm_pci.c
drm_plane_helper.c
drm_plane.c drm/lease: Make sure implicit planes are leased 2019-04-24 11:30:32 +02:00
drm_prime.c drm: remove prime sg_table caching 2019-05-22 15:34:55 +02:00
drm_print.c drm: Add a helper function for printing a debugfs_regset32. 2019-04-01 10:44:34 -07:00
drm_probe_helper.c
drm_property.c
drm_rect.c
drm_scatter.c
drm_scdc_helper.c
drm_simple_kms_helper.c
drm_syncobj.c drm pull request for 5.2 2019-05-08 21:35:19 -07:00
drm_sysfs.c
drm_trace_points.c
drm_trace.h
drm_vblank.c
drm_vm.c drm: allow removal of legacy codepaths (v4.1) 2019-04-24 12:33:15 +10:00
drm_vma_manager.c
drm_vram_helper_common.c drm: Replace drm_gem_vram_push_to_system() with kunmap + unpin 2019-05-22 12:43:29 +02:00
drm_vram_mm_helper.c drm: Integrate VRAM MM into struct drm_device 2019-05-15 16:17:06 +02:00
drm_writeback.c
Kconfig drm/mcde: Add new driver for ST-Ericsson MCDE 2019-05-24 17:00:13 +02:00
Makefile drm/mcde: Add new driver for ST-Ericsson MCDE 2019-05-24 17:00:13 +02:00