Displaying 4 results from an estimated 4 matches for "fuqian".
2019 Jul 03
3
[PATCH v2 06/35] crypto: Use kmemdup rather than duplicating its implementation
....
Rather than kmalloc/kzalloc + memcpy, which the programmer needs to
write the size twice (sometimes lead to mistakes), kmemdup improves
readability, leads to smaller code and also reduce the chances of mistakes.
Suggestion to use kmemdup rather than using kmalloc/kzalloc + memcpy.
Signed-off-by: Fuqian Huang <huangfq.daxian at gmail.com>
---
Changes in v2:
- Fix a typo in commit message (memset -> memcpy)
drivers/crypto/caam/caampkc.c | 11 +++--------
drivers/crypto/virtio/virtio_crypto_algs.c | 4 +---
2 files changed, 4 insertions(+), 11 deletions(-)
diff --git a/dr...
2019 Jul 03
3
[PATCH v2 06/35] crypto: Use kmemdup rather than duplicating its implementation
....
Rather than kmalloc/kzalloc + memcpy, which the programmer needs to
write the size twice (sometimes lead to mistakes), kmemdup improves
readability, leads to smaller code and also reduce the chances of mistakes.
Suggestion to use kmemdup rather than using kmalloc/kzalloc + memcpy.
Signed-off-by: Fuqian Huang <huangfq.daxian at gmail.com>
---
Changes in v2:
- Fix a typo in commit message (memset -> memcpy)
drivers/crypto/caam/caampkc.c | 11 +++--------
drivers/crypto/virtio/virtio_crypto_algs.c | 4 +---
2 files changed, 4 insertions(+), 11 deletions(-)
diff --git a/dr...
2019 Jul 03
0
[PATCH v2 06/35] crypto: Use kmemdup rather than duplicating its implementation
On Thu, Jul 04, 2019 at 12:27:08AM +0800, Fuqian Huang wrote:
> kmemdup is introduced to duplicate a region of memory in a neat way.
> Rather than kmalloc/kzalloc + memcpy, which the programmer needs to
> write the size twice (sometimes lead to mistakes), kmemdup improves
> readability, leads to smaller code and also reduce the chance...
2019 Jul 03
0
[PATCH 05/30] crypto: Use kmemdup rather than duplicating its implementation
....
Rather than kmalloc/kzalloc + memset, which the programmer needs to
write the size twice (sometimes lead to mistakes), kmemdup improves
readability, leads to smaller code and also reduce the chances of mistakes.
Suggestion to use kmemdup rather than using kmalloc/kzalloc + memset.
Signed-off-by: Fuqian Huang <huangfq.daxian at gmail.com>
---
drivers/crypto/caam/caampkc.c | 11 +++--------
drivers/crypto/virtio/virtio_crypto_algs.c | 4 +---
2 files changed, 4 insertions(+), 11 deletions(-)
diff --git a/drivers/crypto/caam/caampkc.c b/drivers/crypto/caam/caampkc.c
index fe244...