[patch 1/1] kernel/module.c use __set_current_state() instead of direct assigment

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

 



From: aLeJ <[email protected]>


Use of __set_current_state() instead of direct assigment of
current->state.

Signed-off-by: Alejandro Andres <[email protected]>
Signed-off-by: Domen Puncer <[email protected]>

---
 module.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

Index: quilt/kernel/module.c
===================================================================
--- quilt.orig/kernel/module.c
+++ quilt/kernel/module.c
@@ -556,7 +556,7 @@ static void wait_for_zero_refcount(struc
 			break;
 		schedule();
 	}
-	current->state = TASK_RUNNING;
+	__set_current_state(TASK_RUNNING);
 	down(&module_mutex);
 }
 

--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]
  Powered by Linux