[PATCH] stm32: stm32-hash: Add kmalloc_array allocation check

Li kunyu kunyu at nfschina.com
Fri Feb 24 15:14:29 PST 2023


hello senior:
  'rctx->hw_context' is a member of the rctx pointer array object and will pass 'memcpy(out, rctx, sizeof(*rctx)) at the end of the function;  ', copied to the out pointer memory, it cannot be released, I think this patch does an allocation check on the 'rctx->hw_context' pointer should help a bit.





More information about the linux-arm-kernel mailing list