From 412a2c420b71f76162157ee5fd6d3a973a444013 Mon Sep 17 00:00:00 2001 From: Baruch Even Date: Fri, 24 Mar 2006 18:25:25 +0100 Subject: [PATCH] --- yaml --- r: 23675 b: refs/heads/master c: de0dfcdf550e6339e9f373587da62cffb5b559f8 h: refs/heads/master i: 23673: a86df7cf10e9594e8eae9894d87121af5a3db20c 23671: 9562274e09242e8fba93910f5376a47c53560596 v: v3 --- [refs] | 2 +- trunk/Documentation/RCU/whatisRCU.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 91534f762613..bc35626dd5dc 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: c30fe7f73194650148b58ee80908c1bc38246397 +refs/heads/master: de0dfcdf550e6339e9f373587da62cffb5b559f8 diff --git a/trunk/Documentation/RCU/whatisRCU.txt b/trunk/Documentation/RCU/whatisRCU.txt index 5ed85af88789..b4ea51ad3610 100644 --- a/trunk/Documentation/RCU/whatisRCU.txt +++ b/trunk/Documentation/RCU/whatisRCU.txt @@ -360,7 +360,7 @@ uses of RCU may be found in listRCU.txt, arrayRCU.txt, and NMI-RCU.txt. struct foo *new_fp; struct foo *old_fp; - new_fp = kmalloc(sizeof(*fp), GFP_KERNEL); + new_fp = kmalloc(sizeof(*new_fp), GFP_KERNEL); spin_lock(&foo_mutex); old_fp = gbl_foo; *new_fp = *old_fp; @@ -461,7 +461,7 @@ The foo_update_a() function might then be written as follows: struct foo *new_fp; struct foo *old_fp; - new_fp = kmalloc(sizeof(*fp), GFP_KERNEL); + new_fp = kmalloc(sizeof(*new_fp), GFP_KERNEL); spin_lock(&foo_mutex); old_fp = gbl_foo; *new_fp = *old_fp;