Changes in uspace/lib/label/src/gpt.c [b33d140:deacc58d] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/label/src/gpt.c
rb33d140 rdeacc58d 99 99 uint8_t *etable[2]; 100 100 size_t bsize; 101 aoff64_t nblocks;102 101 uint32_t num_entries; 103 102 uint32_t esize; … … 124 123 } 125 124 126 rc = bd->ops->get_nblocks(bd->arg, &nblocks);127 if (rc != EOK) {128 rc = EIO;129 goto error;130 }131 132 125 if (bsize < 512 || (bsize % 512) != 0) { 133 126 rc = EINVAL; … … 154 147 155 148 h1ba = uint64_t_le2host(gpt_hdr[0]->alternate_lba); 156 157 if (h1ba >= nblocks) {158 rc = EINVAL;159 goto error;160 }161 149 162 150 rc = bd->ops->read(bd->arg, h1ba, 1, gpt_hdr[1]);
Note:
See TracChangeset
for help on using the changeset viewer.