Skip to content
Commit d0ac7a30 authored by Dan Carpenter's avatar Dan Carpenter Committed by Jens Axboe
Browse files

pcd: fix error codes in pcd_init_unit()

Return -ENODEV on these error paths instead of returning success.

Fixes: af761f27

 ("pcd: cleanup initialization")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20211001122623.GA2283@kili
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent db8eda9c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment