On Mon, Aug 04, 2025 at 05:00:20PM +0530, Abinash Singh wrote: > This refactors the 'alloc_buf' function to replace traditional goto-based > error handling with scope-based cleanup helpers. > > No functional changes intended. Please only do this in new code being submitted, no need to change any existing code unless it is needed. > Signed-off-by: Abinash Singh <abinashsinghlalotra@xxxxxxxxx> > --- > drivers/char/virtio_console.c | 14 +++++--------- > 1 file changed, 5 insertions(+), 9 deletions(-) Did you test this? thanks, greg k-h