Hi Thorsten,

default-brightness is also read into a signed int. With
max-brightness = <100> and default-brightness = <0xffffffff>,
brightness ends up as -1, so the upper-bound check misses it.

Could you clamp both values as u32 before assigning them to bl_props?

Thanks,
Junjie

Reply via email to