summaryrefslogtreecommitdiff
path: root/include/linux/input
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-08-21 12:55:19 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-27 14:49:57 +0100
commita2880a917995171223f9988124b6de722ffa695b (patch)
tree1f3f1de668bf07324be1b00ca338fd85107fb6ab /include/linux/input
parentbc0bb4cedd15da3f71815fca900a78cea222f6d8 (diff)
drm/msm: fix unsigned comparison with less than zero
[ Upstream commit dfdb3be43ef1195c491e6c3760b922acb52e3575 ] The return from the call to _mixer_stages can be a negative error code however this is being assigned to an unsigned variable 'stages' hence the check is always false. Fix this by making 'stages' an int. Detected by Coccinelle ("Unsigned expression compared with zero: stages < 0") Fixes: 25fdd5933e4c ("drm/msm: Add SDM845 DPU support") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/input')
0 files changed, 0 insertions, 0 deletions