diff options
author | NeilBrown <neilb@suse.de> | 2011-08-25 00:43:53 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-08-25 00:43:53 -0400 |
commit | 1b6afa17581027218088a18a9ceda600e0ddba7a (patch) | |
tree | b1e8f78bf3f216b7b3d7f740c18009bc29592ed1 | |
parent | a5bf4df0c88b88d34b6f0e3bc8a402dac7d14611 (diff) |
md/linear: avoid corrupting structure while waiting for rcu_free to complete.
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.
Cc: stable@kernel.org
Signed-off-by: NeilBrown <neilb@suse.de>
-rw-r--r-- | drivers/md/linear.h | 2 |
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; | |||
10 | 10 | ||
11 | struct linear_private_data | 11 | struct linear_private_data |
12 | { | 12 | { |
13 | struct rcu_head rcu; | ||
13 | sector_t array_sectors; | 14 | sector_t array_sectors; |
14 | dev_info_t disks[0]; | 15 | dev_info_t disks[0]; |
15 | struct rcu_head rcu; | ||
16 | }; | 16 | }; |
17 | 17 | ||
18 | 18 | ||