commit | 9f599b4a78c8f798fab8655641cfd74e42fdaef0 | [log] [tgz] |
---|---|---|
author | Aditya Bavanari <abavanar@codeaurora.org> | Tue Aug 27 22:18:41 2019 +0530 |
committer | Aditya Bavanari <abavanar@codeaurora.org> | Tue Aug 27 22:18:41 2019 +0530 |
tree | 83341888679540c4dfda144fd14a17cd2499501a | |
parent | 47673f2f83599ce8d871a8692eb395c07a1dba28 [diff] |
soc: Fix out of bounds access in register show function In register show function, when snprintf returns a negative value out of bounds access occurs while copying the data to user. Add return value check on snprintf before copy_to_user to fix this. Change-Id: I96bfa64b1603c966852c1d4d4a12651664f17aed Signed-off-by: Aditya Bavanari <abavanar@codeaurora.org>