diff --git a/common/spl/spl_fat.c b/common/spl/spl_fat.c
index 91481fcc134a9de791c15dc6d773943ba1064ec1..350f7d9fd684f610c223f1dc8a58658b43b7f7eb 100644
--- a/common/spl/spl_fat.c
+++ b/common/spl/spl_fat.c
@@ -30,7 +30,7 @@ static int spl_register_fat_device(block_dev_desc_t *block_dev, int partition)
 #ifdef CONFIG_SPL_LIBCOMMON_SUPPORT
 		printf("%s: fat register err - %d\n", __func__, err);
 #endif
-		hang();
+		return err;
 	}
 
 	fat_registered = 1;