mirror of
https://github.com/torvalds/linux.git
synced 2026-11-30 10:32:24 +00:00
Buffer size used in dma allocation and memcpy is wrong.
It can lead to undersized DMA buffer access and possible
memory corruption. use correct buffer size in dma_alloc_coherent
and memcpy.
Fixes: 737c0c8d07 ("nvmem: zynqmp_nvmem: Add support to access efuse")
Cc: [email protected]
Signed-off-by: Ivan Vera <[email protected]>
Signed-off-by: Harish Ediga <[email protected]>
Signed-off-by: Harsh Jain <[email protected]>
Signed-off-by: Srinivas Kandagatla <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>