Changeset 0dbd4a9 in mainline for uspace/srv/bd/hr/superblock.c


Ignore:
Timestamp:
2025-06-28T22:52:18Z (9 months ago)
Author:
Miroslav Cimerman <mc@…>
Children:
9c9955ab
Parents:
2192a01
Message:

hr: metadata: validate magic early in decode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/bd/hr/superblock.c

    r2192a01 r0dbd4a9  
    9696
    9797                rc = meta_ops->probe(svc_id, &metadata_struct);
    98                 if (rc != EOK) {
    99                         if (rc != ENOFS)
    100                                 return rc;
     98                if (rc == ENOMEM)
     99                        return ENOMEM;
     100                if (rc != EOK)
    101101                        continue;
    102                 }
    103102
    104103                *rmetadata = metadata_struct;
Note: See TracChangeset for help on using the changeset viewer.