diag: dci:Safeguard to prevent Integer Underflow and Memory Leak
diag: dci:Safeguard to prevent Integer Underflow and Memory Leak

At certain point in diag driver there can be integer underflow
thus can lead to memory leak. Added a safeguard for that.

Change-Id: Ic4d97df62d3f65566ffa6d2d7daa35f4485e3f2c
CRs-fixed: 556860
Signed-off-by: Katish Paran <fd4ced81890aa2d1f9e39e2a0e1ab4d14c3d9652@codeaurora.org>

TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas,TeamVee-Kanas/android_kernel_samsung_kanas