]> rtime.felk.cvut.cz Git - zynq/linux.git/commit
drm: xlnx: crtc: Fix max width and height overflow xilinx-v2018.3
authorVishal Sagar <vishal.sagar@xilinx.com>
Thu, 15 Nov 2018 07:15:18 +0000 (12:45 +0530)
committerMichal Simek <michal.simek@xilinx.com>
Thu, 15 Nov 2018 09:23:38 +0000 (10:23 +0100)
commit51445f9139af73c616f054a8fcc77ed2568b81b1
tree20da089959e6a070b6a7907b9776f1e2d638a8fe
parent3a1266e41be3b080192c25c561e890d7717bc006
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