diff options
| author | Cristian Stoica <cristian.stoica@nxp.com> | 2016-01-25 11:19:43 +0200 |
|---|---|---|
| committer | Otavio Salvador <otavio@ossystems.com.br> | 2016-08-12 11:41:02 -0300 |
| commit | b8e3085e4e9608b301121c7065c84a3e51b94c74 (patch) | |
| tree | 27dd6761bb8a8b9a3ce311bab1155a15badaec5e /recipes-kernel/cryptodev/sdk_patches/0033-avoid-unnecessary-checks-for-hash-clean-up.patch | |
| parent | 578ab5d071729c9677d928467a2b48bcb0017139 (diff) | |
| download | meta-freescale-b8e3085e4e9608b301121c7065c84a3e51b94c74.tar.gz | |
cryptodev-qoriq: upgrade to 1.8 plus fsl patches
upstream commit: 87b56e04b24c6d4be145483477eff7d3153290e9
Also:
- move all fsl patches on top of cryptodev-1.8
- add CIOCHASH ioctl
- fix incorrect tests initializations
- modify yocto patches to match updated Makefiles
Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com>
Diffstat (limited to 'recipes-kernel/cryptodev/sdk_patches/0033-avoid-unnecessary-checks-for-hash-clean-up.patch')
| -rw-r--r-- | recipes-kernel/cryptodev/sdk_patches/0033-avoid-unnecessary-checks-for-hash-clean-up.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/recipes-kernel/cryptodev/sdk_patches/0033-avoid-unnecessary-checks-for-hash-clean-up.patch b/recipes-kernel/cryptodev/sdk_patches/0033-avoid-unnecessary-checks-for-hash-clean-up.patch new file mode 100644 index 000000000..3ce8a5ff5 --- /dev/null +++ b/recipes-kernel/cryptodev/sdk_patches/0033-avoid-unnecessary-checks-for-hash-clean-up.patch | |||
| @@ -0,0 +1,33 @@ | |||
| 1 | From 774c6bd169b683ed54ebad164d0ff541e1381a64 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Cristian Stoica <cristian.stoica@nxp.com> | ||
| 3 | Date: Tue, 12 Jan 2016 17:09:33 +0200 | ||
| 4 | Subject: [PATCH 33/38] avoid unnecessary checks for hash clean-up | ||
| 5 | |||
| 6 | hdata->init is set only after all necessary allocations succeed. On | ||
| 7 | clean-up is no longer necessary to make the allocation checks. | ||
| 8 | |||
| 9 | Signed-off-by: Cristian Stoica <cristian.stoica@nxp.com> | ||
| 10 | --- | ||
| 11 | cryptlib.c | 6 ++---- | ||
| 12 | 1 file changed, 2 insertions(+), 4 deletions(-) | ||
| 13 | |||
| 14 | diff --git a/cryptlib.c b/cryptlib.c | ||
| 15 | index 5972fc2..5d1a5a9 100644 | ||
| 16 | --- a/cryptlib.c | ||
| 17 | +++ b/cryptlib.c | ||
| 18 | @@ -359,10 +359,8 @@ error: | ||
| 19 | void cryptodev_hash_deinit(struct hash_data *hdata) | ||
| 20 | { | ||
| 21 | if (hdata->init) { | ||
| 22 | - if (hdata->async.request) | ||
| 23 | - ahash_request_free(hdata->async.request); | ||
| 24 | - if (hdata->async.s) | ||
| 25 | - crypto_free_ahash(hdata->async.s); | ||
| 26 | + ahash_request_free(hdata->async.request); | ||
| 27 | + crypto_free_ahash(hdata->async.s); | ||
| 28 | hdata->init = 0; | ||
| 29 | } | ||
| 30 | } | ||
| 31 | -- | ||
| 32 | 2.7.0 | ||
| 33 | |||
