Skip to content
Commit 3b089e4f authored by Stefan Roese's avatar Stefan Roese
Browse files

UBI: Set ubi_dev.type back to DEV_TYPE_NONE upon failing initialization



With this patch we set the type back to NONE upon failing UBI partition
initialization. Otherwise further calls to the UBI subsystem would try
to really access the non-existing UBI partition.

Thanks to Michael Lawnick for pointing this out.

Signed-off-by: default avatarStefan Roese <sr@denx.de>
parent 81732935
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment