diag: Update boundary check for UPD session array index

The patch updates the boundary check for the array index
moving beyond the array size.

Change-Id: I9f4cd683a613e32befc0a2dc9c5b25f061df5224
Signed-off-by: Manoj Prabhu B <bmanoj@codeaurora.org>
1 file changed