diff options
author | Christian Borntraeger <[email protected]> | 2014-04-23 20:58:45 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2014-04-25 12:25:14 -0700 |
commit | 0c8c77d35582c3f7989f1316368da5ae7f14ad4b (patch) | |
tree | 0a166093a460b69fc1ec02e6f216708155f70710 | |
parent | b44b2140265ddfde03acbe809336111d31adb0d1 (diff) |
s390/ccwgroup: Fix memory corruption
commit 0b60f9ead5d4816e7e3d6e28f4a0d22d4a1b2513 (s390: use
device_remove_file_self() instead of device_schedule_callback())
caused random memory corruption on my s390 box. Turns out that the
last element of the ccwgroup structure is of dynamic size, so we
must move the newly introduced work structure _before_ the zero
length array.
Signed-off-by: Christian Borntraeger <[email protected]>
CC: Tejun Heo <[email protected]>
CC: Martin Schwidefsky <[email protected]>
CC: Heiko Carstens <[email protected]>
CC: Sebastian Ott <[email protected]>
CC: Peter Oberparleiter <[email protected]>
Acked-by: Tejun Heo <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r-- | arch/s390/include/asm/ccwgroup.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/include/asm/ccwgroup.h b/arch/s390/include/asm/ccwgroup.h index 6e670f88d125..ebc2913f9ee0 100644 --- a/arch/s390/include/asm/ccwgroup.h +++ b/arch/s390/include/asm/ccwgroup.h @@ -22,8 +22,8 @@ struct ccwgroup_device { /* public: */ unsigned int count; struct device dev; - struct ccw_device *cdev[0]; struct work_struct ungroup_work; + struct ccw_device *cdev[0]; }; /** |