Re: [Intel-gfx] [PATCH 11/21] fbcon: Extract fbcon_open/release helpers

2022-02-08 Thread Daniel Vetter
On Tue, Feb 08, 2022 at 07:24:03PM +0100, Sam Ravnborg wrote: > Hi Daniel, > > On Tue, Feb 08, 2022 at 02:48:29PM +0100, Daniel Vetter wrote: > > On Thu, Feb 03, 2022 at 10:15:14PM +0100, Sam Ravnborg wrote: > > > Hi Daniel, > > > > > > On Mon, Jan 31, 2022 at 10:05:42PM +0100, Daniel Vetter

Re: [PATCH 11/21] fbcon: Extract fbcon_open/release helpers

2022-02-08 Thread Sam Ravnborg
Hi Daniel, On Tue, Feb 08, 2022 at 02:48:29PM +0100, Daniel Vetter wrote: > On Thu, Feb 03, 2022 at 10:15:14PM +0100, Sam Ravnborg wrote: > > Hi Daniel, > > > > On Mon, Jan 31, 2022 at 10:05:42PM +0100, Daniel Vetter wrote: > > > There's two minor behaviour changes in here: > > > - in error

Re: [PATCH 11/21] fbcon: Extract fbcon_open/release helpers

2022-02-08 Thread Daniel Vetter
On Thu, Feb 03, 2022 at 10:15:14PM +0100, Sam Ravnborg wrote: > Hi Daniel, > > On Mon, Jan 31, 2022 at 10:05:42PM +0100, Daniel Vetter wrote: > > There's two minor behaviour changes in here: > > - in error paths we now consistently call fb_ops->fb_release > > - fb_release really can't fail

Re: [PATCH 11/21] fbcon: Extract fbcon_open/release helpers

2022-02-03 Thread Sam Ravnborg
Hi Daniel, > > > + kfree(ops->cursor_state.mask); > > + kfree(ops->cursor_data); > > + kfree(ops->cursor_src); > > + kfree(ops->fontbuffer); > > + kfree(oldinfo->fbcon_par); > > + oldinfo->fbcon_par = NULL; > These all look like candidates to stuff into fbcon_release() > That would

Re: [PATCH 11/21] fbcon: Extract fbcon_open/release helpers

2022-02-03 Thread Sam Ravnborg
Hi Daniel, On Mon, Jan 31, 2022 at 10:05:42PM +0100, Daniel Vetter wrote: > There's two minor behaviour changes in here: > - in error paths we now consistently call fb_ops->fb_release > - fb_release really can't fail (fbmem.c ignores it too) and there's no > reasonable cleanup we can do anyway.

[PATCH 11/21] fbcon: Extract fbcon_open/release helpers

2022-01-31 Thread Daniel Vetter
There's two minor behaviour changes in here: - in error paths we now consistently call fb_ops->fb_release - fb_release really can't fail (fbmem.c ignores it too) and there's no reasonable cleanup we can do anyway. Signed-off-by: Daniel Vetter Cc: Daniel Vetter Cc: Claudio Suarez Cc: Greg