mirror of
https://github.com/LineageOS/android_kernel_samsung_msm8226.git
synced 2026-10-13 00:00:48 +02:00
If driver copies only partial data buffer to user space it does not update the buffer pointer. In this case buffer pointer is still pointing to the already read buffer and will be copied again in next read request from user space. This corrupts the contents of the efs file or ram dump files. Hence update data buffer pointer with length of memory read completed by user space. CRs-Fixed: 403250 Change-Id: I48217aeeb2ee5ad05089922c6a7793195b95ce0c Signed-off-by: Hemant Kumar <hemantk@codeaurora.org>