diff options
author | Boris Brezillon <bbrezillon@kernel.org> | 2019-01-02 15:36:54 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-05 15:27:04 +0100 |
commit | 546e4e174436e340b5db850c30b2dc205bd8d9e2 (patch) | |
tree | e38a119c1d953aa85048c333f4a6990152c07c42 /net/tipc | |
parent | fa226e44179e13bf7d2fd96d16a956b7fd1db565 (diff) |
mtd: Check add_mtd_device() ret code
[ Upstream commit 2b6f0090a3335b7bdd03ca520c35591159463041 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/tipc')
0 files changed, 0 insertions, 0 deletions