- still need to actually test these
Details
Details
- Reviewers
cem jmg - Commits
- rS368008: Remove uses of CRIOGET in OCF tests after r368005.
Diff Detail
Diff Detail
- Lint
No Lint Coverage - Unit
No Test Coverage - Build Status
Buildable 35028 Build 32013: arc lint + arc unit
Event Timeline
tools/tools/crypto/cryptokeytest.c | ||
---|---|---|
116 | We leak the fd now. |
tools/tools/crypto/cryptokeytest.c | ||
---|---|---|
116 | devcrypto() allocates a single static fd for /dev/crypto that it leaks until process exit by design. This just reuses that. I went for a smaller diff than replacing ioctl() calls, though perhaps there is only one ioctl() call so just using devcrypto() directly for the ioctl() would have been fine. |
tools/tools/crypto/cryptokeytest.c | ||
---|---|---|
116 | Sorry, I missed that devcrypto() caches the open fd. I thought we were opening /dev/crypto anew upon each call. |