]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
drm: xlnx: crtc: Fix max width and height overflow xlnx_rebase_v4.14_2018.3
authorVishal Sagar <vishal.sagar@xilinx.com>
Thu, 15 Nov 2018 07:15:18 +0000 (12:45 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 19 Nov 2018 15:02:32 +0000 (16:02 +0100)
commiteeab73d1207d6fc2082776c954eb19fd7290bfbe
tree20da089959e6a070b6a7907b9776f1e2d638a8fe
parentbbb3400d678ed77e35bff7a0f8c42bdf36a14372
drm: xlnx: crtc: Fix max width and height overflow

The maximum resolution supported is shown as -1x-1 in Xorg.log when
trying to run Xorg. This is occurring due to width and height variables
overflowing as they are assigned UINT_MAX instead of INT_MAX.
This patch fixes this by correcting the data types of width and height
variables and correctly assigning INT_MAX as maximum width and height.

Signed-off-by: Vishal Sagar <vishal.sagar@xilinx.com>
Signed-off-by: Saurabh Sengar <saurabh.singh@xilinx.com>
Reviewed-by: Sandip Kothari <sandipk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/gpu/drm/xlnx/xlnx_crtc.c