Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
None
-
3
-
9223372036854775807
Description
In lod_pool_new(), when lprocfs_register() for pool_spill_proc_entry fails, the error handler incorrectly NULLs pool_proc_entry instead of pool_spill_proc_entry:
if (IS_ERR(new_pool->pool_spill_proc_entry)) {
rc = PTR_ERR(new_pool->pool_spill_proc_entry);
new_pool->pool_proc_entry = NULL; // should be new_pool->pool_spill_proc_entry = NULL;
lod_pool_putref(new_pool);
}