[folded-merged] uprobes-use-vm_special_mapping-close-functionality-fix.patch removed from -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The quilt patch titled
     Subject: uprobes: remove unneeded condition
has been removed from the -mm tree.  Its filename was
     uprobes-use-vm_special_mapping-close-functionality-fix.patch

This patch was dropped because it was folded into uprobes-use-vm_special_mapping-close-functionality.patch

------------------------------------------------------
From: Muhammad Usama Anjum <usama.anjum@xxxxxxxxxxxxx>
Subject: uprobes: remove unneeded condition
Date: Fri, 6 Sep 2024 15:18:25 +0500

The area cannot be NULL as we are getting it through container_of(). 
Hence there is no need to check its validity.  Remove the if condition and
return statement.

Link: https://lkml.kernel.org/r/20240906101825.177490-1-usama.anjum@xxxxxxxxxxxxx
Signed-off-by: Muhammad Usama Anjum <usama.anjum@xxxxxxxxxxxxx>
Cc: Adrian Hunter <adrian.hunter@xxxxxxxxx>
Cc: Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx>
Cc: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
Cc: Ian Rogers <irogers@xxxxxxxxxx>
Cc: Ingo Molnar <mingo@xxxxxxxxxx>
Cc: Jiri Olsa <jolsa@xxxxxxxxxx>
Cc: Kan Liang <kan.liang@xxxxxxxxxxxxxxx>
Cc: Mark Rutland <mark.rutland@xxxxxxx>
Cc: Masami Hiramatsu <mhiramat@xxxxxxxxxx>
Cc: Namhyung Kim <namhyung@xxxxxxxxxx>
Cc: Oleg Nesterov <oleg@xxxxxxxxxx>
Cc: Peter Zijlstra <peterz@xxxxxxxxxxxxx>
Cc: Sven Schnelle <svens@xxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 kernel/events/uprobes.c |    3 ---
 1 file changed, 3 deletions(-)

--- a/kernel/events/uprobes.c~uprobes-use-vm_special_mapping-close-functionality-fix
+++ a/kernel/events/uprobes.c
@@ -1493,9 +1493,6 @@ static void uprobe_clear_state(const str
 	delayed_uprobe_remove(NULL, vma->vm_mm);
 	mutex_unlock(&delayed_uprobe_lock);
 
-	if (!area)
-		return;
-
 	put_page(area->pages[0]);
 	kfree(area->bitmap);
 	kfree(area);
_

Patches currently in -mm which might be from usama.anjum@xxxxxxxxxxxxx are

uprobes-use-vm_special_mapping-close-functionality.patch





[Index of Archives]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux