On Mon, Mar 4, 2024 at 9:31 PM Heiner Kallweit <hkallweit1@xxxxxxxxx> wrote: > If registering the platform device fails, the lookup table is > removed in the error path. On module removal we would try to > remove the lookup table again. Fix this by setting priv->lookup > only if registering the platform device was successful. > In addition free the memory allocated for the lookup table in > the error path. > > Fixes: d308dfbf62ef ("i2c: mux/i801: Switch to use descriptor passing") > Cc: stable@xxxxxxxxxxxxxxx > Reviewed-by: Andi Shyti <andi.shyti@xxxxxxxxxx> > Signed-off-by: Heiner Kallweit <hkallweit1@xxxxxxxxx> > --- > v2: > - cc stable > - free memory allocated for the lookup table > v3: > - cc'ed Linus My bug I guess, mea culpa. Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx> Yours, Linus Walleij