msm: mdm: Fix error value for SHUTDOWN_CHARM ioctl
SHUTDOWN_CHARM should write the error value to the parameter
passed, but in this case as no error value is updated.
CRs-Fixed: 424291
Change-Id: I33f6cbc35bfaebfdfad2e67edbfb05e2037d0006
Signed-off-by: Taniya Das <tdas@codeaurora.org>
diff --git a/arch/arm/mach-msm/mdm_common.c b/arch/arm/mach-msm/mdm_common.c
index b81832e..aef4ac9 100644
--- a/arch/arm/mach-msm/mdm_common.c
+++ b/arch/arm/mach-msm/mdm_common.c
@@ -300,6 +300,7 @@
if (ret)
pr_err("%s: Graceful shutdown of the external modem failed, ret = %d\n",
__func__, ret);
+ put_user(ret, (unsigned long __user *) arg);
break;
default:
pr_err("%s: invalid ioctl cmd = %d\n", __func__, _IOC_NR(cmd));