Linux Framebuffer Layer development
 help / color / mirror / Atom feed
* [PATCH v2 0/2] staging: fbtft: cleanup fbtft_framebuffer_alloc()
@ 2025-06-28  4:59 Abdun Nihaal
  2025-06-28  4:59 ` [PATCH v2 1/2] staging: fbtft: fix potential memory leak in fbtft_framebuffer_alloc() Abdun Nihaal
  2025-06-28  4:59 ` [PATCH v2 2/2] staging: fbtft: cleanup error handling " Abdun Nihaal
  0 siblings, 2 replies; 5+ messages in thread
From: Abdun Nihaal @ 2025-06-28  4:59 UTC (permalink / raw)
  To: andy
  Cc: Abdun Nihaal, dan.carpenter, gregkh, lorenzo.stoakes, tzimmermann,
	riyandhiman14, willy, notro, thomas.petazzoni, dri-devel,
	linux-fbdev, linux-staging, linux-kernel

v2:
- Change the earlier patch to also handle the error code returned by
  fb_deferred_io_init() and update Fixes tag to point to the commit that
  introduced the memory allocation (which leads to leak).
- Add second patch to make the error handling order symmetric to
  fbtft_framebuffer_release() and also remove managed allocation for
  txbuf as suggested by Andy and Dan.

Link to v1: https://lore.kernel.org/all/20250626172412.18355-1-abdun.nihaal@gmail.com/

Abdun Nihaal (2):
  staging: fbtft: fix potential memory leak in fbtft_framebuffer_alloc()
  staging: fbtft: cleanup error handling in fbtft_framebuffer_alloc()

 drivers/staging/fbtft/fbtft-core.c | 39 +++++++++++++++++-------------
 1 file changed, 22 insertions(+), 17 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-06-29 14:23 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-28  4:59 [PATCH v2 0/2] staging: fbtft: cleanup fbtft_framebuffer_alloc() Abdun Nihaal
2025-06-28  4:59 ` [PATCH v2 1/2] staging: fbtft: fix potential memory leak in fbtft_framebuffer_alloc() Abdun Nihaal
2025-06-28  4:59 ` [PATCH v2 2/2] staging: fbtft: cleanup error handling " Abdun Nihaal
2025-06-28 19:58   ` Andy Shevchenko
2025-06-29 14:23     ` Abdun Nihaal

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox