From: Junjie Cao <junjie.cao@linux.dev>
To: blum@kernel.org
Cc: lee@kernel.org, danielt@kernel.org, jingoohan1@gmail.com,
deller@gmx.de, mitltlatltl@gmail.com,
dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org,
junjie.cao@linux.dev
Subject: Re: [PATCH] backlight: aw99706: Clamp negative max brightness values
Date: Thu, 26 Nov 2026 22:50:48 -0600 [thread overview]
Message-ID: <20261127045048.1317758-1-junjie.cao@linux.dev> (raw)
In-Reply-To: <20261127021423.656745-2-blum@kernel.org>
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
prev parent reply other threads:[~2026-11-27 4:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-27 2:14 [PATCH] backlight: aw99706: Clamp negative max brightness values Thorsten Blum
2026-11-27 4:50 ` Junjie Cao [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261127045048.1317758-1-junjie.cao@linux.dev \
--to=junjie.cao@linux.dev \
--cc=blum@kernel.org \
--cc=danielt@kernel.org \
--cc=deller@gmx.de \
--cc=dri-devel@lists.freedesktop.org \
--cc=jingoohan1@gmail.com \
--cc=lee@kernel.org \
--cc=linux-fbdev@vger.kernel.org \
--cc=mitltlatltl@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox