Skip to content

Commit d8fc9cd

Browse files
committed
Merge branch 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
Pull crypto fixes from Herbert Xu: "This fixes a Kconfig dependency for hisilicon as well as a double free in marvell/octeontx" * 'linus' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6: crypto: marvell/octeontx - fix double free of ptr crypto: hisilicon - Fix build error
2 parents 5602b0a + 755bddd commit d8fc9cd

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

drivers/crypto/hisilicon/Kconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ config CRYPTO_DEV_HISI_SEC2
2727
select CRYPTO_SHA256
2828
select CRYPTO_SHA512
2929
depends on PCI && PCI_MSI
30+
depends on UACCE || UACCE=n
3031
depends on ARM64 || (COMPILE_TEST && 64BIT)
3132
help
3233
Support for HiSilicon SEC Engine of version 2 in crypto subsystem.
@@ -58,6 +59,7 @@ config CRYPTO_DEV_HISI_ZIP
5859
config CRYPTO_DEV_HISI_HPRE
5960
tristate "Support for HISI HPRE accelerator"
6061
depends on PCI && PCI_MSI
62+
depends on UACCE || UACCE=n
6163
depends on ARM64 || (COMPILE_TEST && 64BIT)
6264
select CRYPTO_DEV_HISI_QM
6365
select CRYPTO_DH

drivers/crypto/marvell/octeontx/otx_cptvf_algs.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1161,13 +1161,13 @@ static inline u32 create_aead_null_output_list(struct aead_request *req,
11611161
inputlen);
11621162
if (status != inputlen) {
11631163
status = -EINVAL;
1164-
goto error;
1164+
goto error_free;
11651165
}
11661166
status = sg_copy_from_buffer(req->dst, sg_nents(req->dst), ptr,
11671167
inputlen);
11681168
if (status != inputlen) {
11691169
status = -EINVAL;
1170-
goto error;
1170+
goto error_free;
11711171
}
11721172
kfree(ptr);
11731173
}
@@ -1209,8 +1209,10 @@ static inline u32 create_aead_null_output_list(struct aead_request *req,
12091209

12101210
req_info->outcnt = argcnt;
12111211
return 0;
1212-
error:
1212+
1213+
error_free:
12131214
kfree(ptr);
1215+
error:
12141216
return status;
12151217
}
12161218

0 commit comments

Comments
 (0)