On Fri, Jan 5, 2024 at 3:55 PM Christophe JAILLET <christophe.jaillet@xxxxxxxxxx> wrote: > > Le 05/01/2024 à 14:50, Rafael J. Wysocki a écrit : > > On Fri, Jan 5, 2024 at 2:45 PM Christophe JAILLET > > <christophe.jaillet@xxxxxxxxxx> wrote: > >> > >> Some *thermal_cooling_device_register() calls pass a string literal as the > >> 'type' parameter. > >> > >> So kstrdup_const() can be used instead of kfree() to avoid a memory > > > > I guess you mean kstrdup()? > > Sure. > Stupid cut'n'paste typo. Thx for catching it. > > Should I resend, or can it be fixed if/when the patch is applied? I can fix it up.