aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
diff options
context:
space:
mode:
authorAdam Ford <[email protected]>2019-10-06 16:33:11 +0000
committerGreg Kroah-Hartman <[email protected]>2019-10-07 11:21:54 +0000
commit37e3ab00e4734acc15d96b2926aab55c894f4d9c (patch)
tree65ba1c11ae2f099d73b6d193731bea47167fcc41 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
parenttty: serial: fsl_lpuart: Fix lpuart_flush_buffer() (diff)
downloadkernel-37e3ab00e4734acc15d96b2926aab55c894f4d9c.tar.gz
kernel-37e3ab00e4734acc15d96b2926aab55c894f4d9c.zip
serial: mctrl_gpio: Check for NULL pointer
When using mctrl_gpio_to_gpiod, it dereferences gpios into a single requested GPIO. This dereferencing can break if gpios is NULL, so this patch adds a NULL check before dereferencing it. If gpios is NULL, this function will also return NULL. Signed-off-by: Adam Ford <[email protected]> Reviewed-by: Yegor Yefremov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions