summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2011-08-25 14:43:53 +1000
committerGreg Kroah-Hartman <gregkh@suse.de>2011-11-07 12:31:52 -0800
commit372994e9fd5cadbacdfcc8724b590193d136c947 (patch)
tree43b38600675b5f3329bbf082b2f713c08bae6019 /drivers
parent10ae01e212fa102b65debed5b8ef7549917e605a (diff)
downloadlinux-stable-372994e9fd5cadbacdfcc8724b590193d136c947.tar.gz
linux-stable-372994e9fd5cadbacdfcc8724b590193d136c947.tar.bz2
linux-stable-372994e9fd5cadbacdfcc8724b590193d136c947.zip
md/linear: avoid corrupting structure while waiting for rcu_free to complete.
commit 1b6afa17581027218088a18a9ceda600e0ddba7a upstream. I don't know what I was thinking putting 'rcu' after a dynamically sized array! The array could still be in use when we call rcu_free() (That is the point) so we mustn't corrupt it. Signed-off-by: NeilBrown <neilb@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/md/linear.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/linear.h b/drivers/md/linear.h
index 0ce29b61605a..2f2da05b2ce9 100644
--- a/drivers/md/linear.h
+++ b/drivers/md/linear.h
@@ -10,9 +10,9 @@ typedef struct dev_info dev_info_t;
struct linear_private_data
{
+ struct rcu_head rcu;
sector_t array_sectors;
dev_info_t disks[0];
- struct rcu_head rcu;
};