[PATCH] bus: sunxi-rsb: Always check register address validity
Chen-Yu Tsai
wens at csie.org
Thu May 14 19:44:54 PDT 2026
On Fri, May 15, 2026 at 5:17 AM Andrey Skvortsov
<andrej.skvortzov at gmail.com> wrote:
>
>
> On 26-03-14 15:33, Chen-Yu Tsai wrote:
> > On Sun, Mar 1, 2026 at 10:50 PM Andrey Skvortsov
> > <andrej.skvortzov at gmail.com> wrote:
> > >
> > > From: Samuel Holland <samuel at sholland.org>
> > >
> > > The register address was already validated for read operations in
> > > regmap_sunxi_rsb_reg_read before being truncated to a u8. Write operations
> > > have the same set of possible addresses, and the address is being truncated
> > > from u32 to u8 here as well, so the same check is needed.
> > >
> > > Signed-off-by: Samuel Holland <samuel at sholland.org>
> > > Signed-off-by: Andrey Skvortsov <andrej.skvortzov at gmail.com>
> >
> > Should probably have:
> >
> > Fixes: d787dcdb9c8f ("bus: sunxi-rsb: Add driver for Allwinner Reduced
> > Serial Bus")
> >
> > I will added (via b4) when applying.
> >
> > Reviewed-by: Chen-Yu Tsai <wens at kernel.org>
>
> Hi,
>
> do I need to update and resend this patch?
Sorry this fell through the cracks. I've applied it now.
ChenYu
More information about the linux-arm-kernel
mailing list