Marin Ramesa, le Tue 19 Nov 2013 07:34:22 +0100, a écrit :
> Check is active_threads is NULL before calling current_task() to
> avoid dereference of null pointer.
Ah, the vm_stat_sample tracing macro is extra careful about
current_thread(), probably because it may be called very early during
boot,
Check is active_threads is NULL before calling current_task() to
avoid dereference of null pointer.
* vm/vm_fault.c (active_threads): Check if it's NULL.
---
vm/vm_fault.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/vm/vm_fault.c b/vm/vm_fault.c
index 4b30f98..1089491 1