Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 507c0185 authored by Felix Kuhling's avatar Felix Kuhling Committed by airlied
Browse files

drm: drm_rmdraw: Declare id and idx as signed so testing for < 0 works as intended.



Signed-off-by: default avatarDave Airlie <airlied@linux.ie>
parent cdec2f82
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -132,7 +132,8 @@ int drm_rmdraw(DRM_IOCTL_ARGS)
{
	DRM_DEVICE;
	drm_draw_t draw;
 	unsigned int id, idx, shift;
 	int id, idx;
 	unsigned int shift;
	unsigned long irqflags;
	u32 *bitfield = dev->drw_bitfield;
	unsigned int bitfield_length = dev->drw_bitfield_length;