public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/4 v3] mtd: onenand: samsung: Simplify code and fix leaks in error handling paths
@ 2017-12-14  6:03 Christophe JAILLET
  2017-12-14  6:03 ` [PATCH 1/4 v3] mtd: onenand: samsung: use devm_ function to simplify code and fix some leaks Christophe JAILLET
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Christophe JAILLET @ 2017-12-14  6:03 UTC (permalink / raw)
  To: kyungmin.park, dwmw2, computersforpeace, boris.brezillon,
	marek.vasut, richard, cyrille.pitchen
  Cc: linux-mtd, linux-kernel, kernel-janitors, Christophe JAILLET

The first patch converts 's3c_onenand_probe()' to devm_ functions.
This fixes a leak in one path (line 872).
This also free_irq which was not handled at all. ( I hope I'm correct :) )

The 2nd patch is about an un-handled error code which looks spurious.
Not sure if I'm right.

The 3rd patch propagates an error code instead of returning a hard-coded
value.

The last one removes a useless include spotted while compile-testing.


v3: patch 1/4 updated to fix a bug introduced in v2
    patch 2/4 unchanged
    patch 3/4 and 4/4 added
    now the patch are cross-compile tested :)

Theses patches have been cross compile-tested-only.

Christophe JAILLET (4):
  mtd: onenand: samsung: use devm_ function to simplify
    code and fix some leaks
  mtd: onenand: samsung: return an error if 
    'mtd_device_parse_register()' fails
  mtd: onenand: samsung: Propagate the error returned
    by 'onenand_scan()'
  mtd: onenand: samsung: Remove a useless include

 drivers/mtd/onenand/samsung.c | 172 +++++++++---------------------------------
 1 file changed, 35 insertions(+), 137 deletions(-)

-- 
2.14.1

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

end of thread, other threads:[~2017-12-18 20:03 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-14  6:03 [PATCH 0/4 v3] mtd: onenand: samsung: Simplify code and fix leaks in error handling paths Christophe JAILLET
2017-12-14  6:03 ` [PATCH 1/4 v3] mtd: onenand: samsung: use devm_ function to simplify code and fix some leaks Christophe JAILLET
2017-12-18 20:03   ` Boris Brezillon
2017-12-14  6:03 ` [PATCH 2/4 v3] mtd: onenand: samsung: return an error if 'mtd_device_parse_register()' fails Christophe JAILLET
2017-12-14  6:03 ` [PATCH 3/4 v3] mtd: onenand: samsung: Propagate the error returned by 'onenand_scan()' Christophe JAILLET
2017-12-14  6:03 ` [PATCH 3/4 v3] mtd: onenand: samsung: Remove a useless include Christophe JAILLET
2017-12-18 19:58   ` Boris Brezillon
2017-12-18 20:03 ` [PATCH 0/4 v3] mtd: onenand: samsung: Simplify code and fix leaks in error handling paths Boris Brezillon

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