diff options
| author | 2019-01-02 15:36:54 +0100 | |
|---|---|---|
| committer | 2019-01-07 14:06:24 +0100 | |
| commit | 2b6f0090a3335b7bdd03ca520c35591159463041 (patch) | |
| tree | 57f2eccaf21d13cafbb2b499639ed5546d342283 /lib/mpi/mpi-inline.h | |
| parent | mtd: Fix the check on nvmem_register() ret code (diff) | |
| download | wireguard-linux-2b6f0090a3335b7bdd03ca520c35591159463041.tar.xz wireguard-linux-2b6f0090a3335b7bdd03ca520c35591159463041.zip | |
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>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions
