OSDN Git Service

msm: ADSPRPC: Validate the SMMU session count
authorSathish Ambley <sathishambley@codeaurora.org>
Thu, 19 May 2016 21:43:25 +0000 (14:43 -0700)
committerKyle Yan <kyan@codeaurora.org>
Tue, 31 May 2016 22:28:19 +0000 (15:28 -0700)
commit7099c2a6d2f6c68016bfdb2c62eefa49885b569c
tree70b97a044d5b7bab2fbbf712ade8eba131da313e
parent857cb953f008186eefe7aa66a6ed3cd5722422f4
msm: ADSPRPC: Validate the SMMU session count

Make sure that the session count does not exceed the maximum
sessions to avoid buffer overflow.

Change-Id: I1a9830a6f859d7d525247d27d0a143997998d997
Acked-by: Bharath Kumar <bkumar@qti.qualcomm.com>
Signed-off-by: Sathish Ambley <sathishambley@codeaurora.org>
drivers/char/adsprpc.c