Re: [PATCH] drm/tiny: Fix some error handling paths in sharp_memory_probe()

2024-10-28 Thread Alex Lanzano
On Sat, Oct 26, 2024 at 08:32:36AM +0200, Christophe JAILLET wrote: > If an error occurs after allocating resources based on which > "sharp,vcom-mode" is used, then these resources must be released, as > already done in the .remove() function. > > Use 2 new devm_add_action_or_reset() for that and

[PATCH] drm/tiny: Fix some error handling paths in sharp_memory_probe()

2024-10-25 Thread Christophe JAILLET
If an error occurs after allocating resources based on which "sharp,vcom-mode" is used, then these resources must be released, as already done in the .remove() function. Use 2 new devm_add_action_or_reset() for that and simplify code accordingly. Fixes: b8f9f21716fe ("drm/tiny: Add driver for Sha