memshare: Response to modem in case of memory allocation failure

Currently memshare driver doesn't respond back in case of memory
allocation failure on apps side. This patch resolves the issue
and sends appropriate response for all cases.

Change-Id: Iab58b38108a592e73ebf9d438daffee5722bdfcd
CRs-Fixed: 681146
Signed-off-by: Katish Paran <kparan@codeaurora.org>
Merge "memshare: Response to modem in case of memory allocation failure"
msm_bam_rmnet: Fix potential memory corruption

Usage of legacy string manipulation function sprintf could lead to
memory corruption as the number of bytes to be written to the
destination is not bounded. Replace sprintf with snprintf where the
number of bytes to be written is explicitly specified.

CRs-fixed: 672202
Change-Id: Iab7516ad0e2540eb619fe96e26a3516c7adf86cc
Signed-off-by: Subash Abhinov Kasiviswanathan <subashab@codeaurora.org>
Merge "msm_bam_rmnet: Fix potential memory corruption"