aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAnton Vasilyev <[email protected]>2018-08-07 13:59:05 +0300
committerGreg Kroah-Hartman <[email protected]>2018-09-18 16:07:24 +0200
commit5963e8a3122471cadfe0eba41c4ceaeaa5c8bb4d (patch)
tree3da5f15d79f5c00e6fe920fd27d72d2020868004 /include/linux
parentd2de9601eb12e7c5b7519cf155cf613322211b54 (diff)
serial: mxs-auart: Fix potential infinite loop
On the error path of mxs_auart_request_gpio_irq() is performed backward iterating with index i of enum type. Underline enum type may be unsigned char. In this case check (--i >= 0) will be always true and error handling goes into infinite loop. The patch changes the check so that it is valid for signed and unsigned types. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Anton Vasilyev <[email protected]> Acked-by: Uwe Kleine-König <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions