mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Clean enclosure_table when resetting num_enc_table_entries to zero.
Garbage left there by r325363 in some scenarios found to lead to later enclosure mapping failures. MFC after: 1 week Sponsored by: iXsystems, Inc.
This commit is contained in:
parent
8facfdcf21
commit
fc9bdb4ee5
1 changed files with 2 additions and 0 deletions
|
|
@ -2385,6 +2385,8 @@ fail:
|
|||
* sc->mapping_table volumes tooi
|
||||
*/
|
||||
}
|
||||
for (enc_idx = 0; enc_idx < sc->num_enc_table_entries; enc_idx++)
|
||||
_mapping_clear_enc_entry(sc->enclosure_table + enc_idx);
|
||||
sc->num_enc_table_entries = 0;
|
||||
return (false);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue