Revert "diag: Add safeguards to prevent Integer Underflow and Memory Leak"

This reverts commit bc96a649bcd393d3c39cf6927c4542b7de8d4778

CRs-Fixed: 416995 416758 416953

Change-Id: I433271dd9d18c738eec562d3df7dd51aa2e23b19

Signed-off-by: Sridhar Ancha <sancha@codeaurora.org>
Signed-off-by: Vignesh Veeramani <quicvignes@codeaurora.org>
Merge "Revert "diag: Add safeguards to prevent Integer Underflow and Memory Leak""
Revert "Revert "diag: Add safeguards to prevent Integer Underflow and Memory Leak""

This reverts commit 37f1255783f8bd05c3f1656ed7d05e43490ab4f0

Change-Id: I8948229bc9f9ade7afe6b39ff6063fe57726bf0c
Signed-off-by: Devendra Patel <cdevenp@codeaurora.org>
Merge "Revert "Revert "diag: Add safeguards to prevent Integer Underflow and Memory Leak"""
diag: Fix diag hdlc decoding support for messages starting with 0x7e

Currently, when an hdlc encoded message is processed by diag and it
encounters a 0x7e, it considers that the end of the message. Make changes
to support messages starting with 0x7e. This patch also fixes a mutex
unlocking problem.

Change-Id: Ia7ec82818e73a8369262416da7c1e89d7fa24580
CRs-Fixed: 456952
Signed-off-by: Ravi Aravamudhan <aravamud@codeaurora.org>
Merge "diag: Fix diag hdlc decoding support for messages starting with 0x7e"