<div>Hi Russell,</div><div><br></div><div>I found some memory leak arch/arm/kernel/sys_oabi-compat.c file </div><div>please review below patch for main line and share ur comments,</div><div><br></div><div>Thanks,</div><div>
Akhilesh</div><div> </div><div><br></div><div><br></div><div><br></div><div>From 86acd014680ae7127cb504387bee1824669a4744 Mon Sep 17 00:00:00 2001</div><div>From: Akhilesh Kumar <<a href="mailto:akhilesh.lxr@gmail.com">akhilesh.lxr@gmail.com</a>></div>
<div>Date: SAT, 4 Aug 2012 03:15:16 +0530</div><div>Subject: [Memory leak]: memory leak in sys_oabi_semtimedo</div><div><br></div><div>if (err) {</div><div> err = -EFAULT;</div><div>} // return without free the memory</div>
<div><br></div><div>Signed-off-by: Akhilesh Kumar <<a href="mailto:akhilesh.lxr@gmail.com">akhilesh.lxr@gmail.com</a>></div><div>---</div><div> arch/arm/kernel/sys_oabi-compat.c | 1 +</div><div> 1 files changed, 1 insertions(+), 0 deletions(-)</div>
<div><br></div><div>diff --git a/arch/arm/kernel/sys_oabi-compat.c b/arch/arm/kernel/sys_oabi-compat.c</div><div>index 3e94811..e34f953 100644</div><div>--- a/arch/arm/kernel/sys_oabi-compat.c</div><div>+++ b/arch/arm/kernel/sys_oabi-compat.c</div>
<div>@@ -329,6 +329,7 @@ asmlinkage long sys_oabi_semtimedop(int semid,</div><div> <span class="Apple-tab-span" style="white-space:pre"> </span>timeout = &local_timeout;</div><div> <span class="Apple-tab-span" style="white-space:pre"> </span>}</div>
<div> <span class="Apple-tab-span" style="white-space:pre"> </span>if (err) {</div><div>+<span class="Apple-tab-span" style="white-space:pre"> </span>kfree(sops);</div><div> <span class="Apple-tab-span" style="white-space:pre"> </span>err = -EFAULT;</div>
<div> <span class="Apple-tab-span" style="white-space:pre"> </span>} else {</div><div> <span class="Apple-tab-span" style="white-space:pre"> </span>mm_segment_t fs = get_fs();</div><div>-- </div><div>1.7.8.4</div>