Skip to contentSkip to conversation

staging: lustre: obdclass: fix checking for obd_init_checks()

PATCH New Dan Carpenter 1 participant 1 message Aug 26, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/3 staging: lustre: obdclass: fix checking for obd_init_checks()

The obd_init_checks() function can either return -EOVERFLOW or -EINVAL but we accidentally ignore -EINVAL returns.

---
This patch is the right thing, but it's always a bit risky turning on new checks and I haven't tested this.

drivers/staging/lustre/lustre/obdclass/class_obd.c +1 -1
index 545358923271..2df218b010e1 100644
@@ -448,7 +448,7 @@ static int __init obdclass_init(void)
 	obd_zombie_impexp_init();
 
 	err = obd_init_checks();
-	if (err = -EOVERFLOW)
+	if (err)
 		return err;
 
 	class_init_uuidlist();