Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
maple: fix wrong return value of maple_bus_init().
[ Upstream commit bde82ee391fa6d3ad054313c4aa7b726d32515ce ] If KMEM_CACHE or maple_alloc_dev failed, the maple_bus_init() will return 0 rather than error, because the retval is not changed after KMEM_CACHE or maple_alloc_dev failed. Fixes: 17be2d2 ("sh: Add maple bus support for the SEGA Dreamcast.") Reported-by: Hulk Robot <[email protected]> Signed-off-by: Lu Wei <[email protected]> Acked-by: John Paul Adrian Glaubitz <[email protected]> Signed-off-by: Rich Felker <[email protected]> Signed-off-by: Sasha Levin <[email protected]>
- Loading branch information