Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
nvmem: mxs-ocotp: fix buffer overflow in read
This patch fixes the issue where the mxs_ocotp_read is reading the ocotp in reg_size steps but decrements the remaining size by 1. The number of iterations is thus four times higher, overwriting the area behind the output buffer. Fixes: c01e9a1 ("nvmem: add driver for ocotp in i.MX23 and i.MX28") Tested-by: Stefan Wahren <[email protected]> Signed-off-by: Stanislav Meduna <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information