lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 8 Dec 2017 22:11:03 +0100 From: Christophe JAILLET <christophe.jaillet@...adoo.fr> To: kyungmin.park@...sung.com, dwmw2@...radead.org, computersforpeace@...il.com, boris.brezillon@...e-electrons.com, marek.vasut@...il.com, richard@....at, cyrille.pitchen@...ev4u.fr Cc: linux-mtd@...ts.infradead.org, linux-kernel@...r.kernel.org, kernel-janitors@...r.kernel.org, Christophe JAILLET <christophe.jaillet@...adoo.fr> Subject: [PATCH 0/2] mtd: onenand: samsung: Simplify code and fix leaks in error handling paths 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. While compile-testing it, I had to tweak the code because I don't have any cross-compiler. I commented the line "#include <asm/mach/flash.h>" and the compilation succeeded. So maybe, this include is also useless. I've left it as-is, though. Theses patches have been compile-tested-only. Christophe JAILLET (2): 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 drivers/mtd/onenand/samsung.c | 145 ++++++++++++++---------------------------- 1 file changed, 47 insertions(+), 98 deletions(-) -- 2.14.1
Powered by blists - more mailing lists