Home
last modified time | relevance | path

Searched hist:"2 b6f0090a3335b7bdd03ca520c35591159463041" (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/mtd/
H A Dmtdcore.hdiff 2b6f0090a3335b7bdd03ca520c35591159463041 Wed Jan 02 15:36:54 CET 2019 Boris Brezillon <bbrezillon@kernel.org> mtd: Check add_mtd_device() ret code

add_mtd_device() can fail. We should always check its return value
and gracefully handle the failure case. Fix the call sites where this
not done (in mtdpart.c) and add a __must_check attribute to the
prototype to avoid this kind of mistakes.

Signed-off-by: Boris Brezillon <bbrezillon@kernel.org>
H A Dmtdpart.cdiff 2b6f0090a3335b7bdd03ca520c35591159463041 Wed Jan 02 15:36:54 CET 2019 Boris Brezillon <bbrezillon@kernel.org> mtd: Check add_mtd_device() ret code

add_mtd_device() can fail. We should always check its return value
and gracefully handle the failure case. Fix the call sites where this
not done (in mtdpart.c) and add a __must_check attribute to the
prototype to avoid this kind of mistakes.

Signed-off-by: Boris Brezillon <bbrezillon@kernel.org>