Android s qpr3 beta 3 release 0.5
Ioctl: add error handling for integer overflow

Fixed ioctl_dpm_qos_update, ioctl_dpm_clk_update
and ioctl_event_control_set, there is a possible
out of bounds write due to an integer overflow.

Bug: 224932775
Test: GCA, test_poc, CTS
Signed-off-by: Nick Chung <>
Change-Id: I8beca1421efc9646f050b6c27ebfdc1a30f0a2c4
(cherry picked from commit 7b919ead431ae0aa8bf83752eca0977e00c6b59a)
1 file changed