linux/drivers/gpu/drm/mgag200
Colin Ian King d03a493f67 drm/mgag200: Fix uninitialized variable delta
The variable delta is not initialized and this will cause unexpected
behaviour with the comparison of tmpdelta < delta. Fix this by setting
it to 0xffffffff. This matches the behaviour as in the similar function
mgag200_pixpll_compute_g200se_04.

v2:
	* move fix up by one line to align style with other functions
	* add additional tags from similar patch

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Fixes: 2545ac9603 ("drm/mgag200: Abstract pixel PLL via struct mgag200_pll")
Addresses-Coverity: ("Uninitialized scalar variable")
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Dave Airlie <airlied@redhat.com>
Cc: dri-devel@lists.freedesktop.org
Link: https://patchwork.freedesktop.org/patch/msgid/20210817163204.494166-1-colin.king@canonical.com
2021-08-18 20:47:59 +02:00
..
Kconfig drm/mgag200: Add support for G200 desktop cards 2020-08-03 09:43:00 +02:00
Makefile drm/mgag200: Abstract pixel PLL via struct mgag200_pll 2021-08-08 20:14:05 +02:00
mgag200_drv.c drm/mgag200: Extract device type and flags in mgag200_pci_probe() 2021-07-05 08:55:39 +02:00
mgag200_drv.h drm/mgag200: Compute PLL values during atomic check 2021-08-08 20:14:14 +02:00
mgag200_i2c.c drm/mgag200: Remove references to struct drm_device.pdev 2021-01-06 15:43:13 +01:00
mgag200_mm.c drm/mgag200: Remove references to struct drm_device.pdev 2021-01-06 15:43:13 +01:00
mgag200_mode.c drm/mgag200: Use offset-adjusted shadow-plane mappings 2021-08-08 20:27:30 +02:00
mgag200_pll.c drm/mgag200: Fix uninitialized variable delta 2021-08-18 20:47:59 +02:00
mgag200_reg.h drm/mgag200: Select clock in PLL update functions 2021-08-08 20:13:10 +02:00