OSDN Git Service

diag: Update msg mask's ranges properly
authorHardik Arya <harya@codeaurora.org>
Wed, 8 Aug 2018 09:16:20 +0000 (14:46 +0530)
committerHardik Arya <harya@codeaurora.org>
Tue, 28 Aug 2018 11:25:36 +0000 (16:55 +0530)
commit36ae97dea0a60504004135df55127de9961cbdcc
treeba0f096829ff270a294b5597f7b3388d450ee6f7
parent87d4444575cd6c2810639a93ccf75fc364bca3e5
diag: Update msg mask's ranges properly

There is a possibility of out-of-bound read if msg mask
ranges received from peripheral are more than max ssid per
range. Cap msg mask's ssid ranges to MAX_SSID_PER_RANGE if
ranges received from peripheral are greater than the same.

Change-Id: I886692ad223e16678bfaecbe381c62fdf3503cb5
Signed-off-by: Hardik Arya <harya@codeaurora.org>
drivers/char/diag/diagfwd_cntl.c