Skip to content

video: fbdev: au1200fb: Fix error handling path of 'au1200fb_drv_probe()'

Christophe JAILLET dri-devel kernel-janitors linux-fbdev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 4 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8video: fbdev: au1200fb: Fix a potential double freedrivers/video/fbdev/au1200fb.c+0 -10 replies
2/8video: fbdev: au1200fb: Return an error code if a memory allocation failsdrivers/video/fbdev/au1200fb.c+3 -10 replies
3/8video: fbdev: au1200fb: Release some resources if a memory allocation failsdrivers/video/fbdev/au1200fb.c+2 -10 replies
4/8video: fbdev: au1200fb: Fix error handling pathdrivers/video/fbdev/au1200fb.c+0 -20 replies
5/8video: fbdev: au1200fb: Fix error handling pathdrivers/video/fbdev/au1200fb.c+10 -21 reply
6/8video: fbdev: au1200fb: Remove some dead codedrivers/video/fbdev/au1200fb.c+0 -61 reply
7/8video: fbdev: au1200fb: Propagate an error codedrivers/video/fbdev/au1200fb.c+4 -30 replies
8/8video: fbdev: au1200fb: Style clean updrivers/video/fbdev/au1200fb.c+4 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/8] video: fbdev: au1200fb: Fix error handling path of 'au1200fb_drv_probe()'

This patch serie tries to fix several issues found in the error handling code of 'au1200fb_drv_probe()'.
The 5 first patches fixes various issues (double free, missing error code, un-released resources on error, incorrect IRQ releasing and incomplete error handling path)

The 3 last patches are just cleanups.

I've spilt the serie in 8 steps that look logical to me. They could also be merged together if preferred.

These patches are provided as-is and ARE NOT even compile-tested (sorry in advance if a patch is broken) because I don't have a cross compiler for MIPS and won't install one.

This serie already goes further that the fixes I usually provide, so please excuse me if I missed something or if it is somehow broken and/or incomplete.

---
V1 previously posted is patch 3/8 of this serie

Christophe JAILLET (8):
video: fbdev: au1200fb: Fix a potential double free
video: fbdev: au1200fb: Return an error code if a memory allocation
fails
video: fbdev: au1200fb: Release some resources if a memory allocation
fails
video: fbdev: au1200fb: Fix error handling path
video: fbdev: au1200fb: Fix error handling path
video: fbdev: au1200fb: Remove some dead code
video: fbdev: au1200fb: Propagate an error code
video: fbdev: au1200fb: Style clean up

 drivers/video/fbdev/au1200fb.c | 43 ++++++++++++++++++++++--------------------
 1 file changed, 23 insertions(+), 20 deletions(-)
Signature · 1 line
2.11.0