Re: drm/komeda: Fix a signedness bug

2019-01-22 Thread james qian wang (Arm Technology China)
On Mon, Jan 21, 2019 at 04:59:52PM +0300, Dan Carpenter wrote: > The mdev->irq value comes from platform_get_irq() so it can't be more > than INT_MAX and if it's unsigned then it breaks the error handling in > komeda_parse_dt(). > > Fixes: 29e56aec911d ("drm/komeda: Add DT parsing") > Signed-off-by

[PATCH] drm/komeda: Fix a signedness bug

2019-01-21 Thread Dan Carpenter
The mdev->irq value comes from platform_get_irq() so it can't be more than INT_MAX and if it's unsigned then it breaks the error handling in komeda_parse_dt(). Fixes: 29e56aec911d ("drm/komeda: Add DT parsing") Signed-off-by: Dan Carpenter --- drivers/gpu/drm/arm/display/komeda/komeda_dev.h | 2