Use common function for accessing FEC devices.

TODO: the device wrappet should hanbdle EINTR better...
This commit is contained in:
Milan Broz
2017-04-05 10:58:03 +02:00
parent 3a058a4f21
commit 1da785cb77
3 changed files with 68 additions and 131 deletions

View File

@@ -1097,7 +1097,7 @@ static int _crypt_format_verity(struct crypt_device *cd,
r = VERITY_create(cd, &cd->u.verity.hdr,
cd->u.verity.root_hash, cd->u.verity.root_hash_size);
if (!r && params->fec_device)
r = VERITY_FEC_create(cd, &cd->u.verity.hdr);
r = VERITY_FEC_create(cd, &cd->u.verity.hdr, cd->u.verity.fec_device);
if (r)
return r;
}