mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 20:07:46 +09:00
Revert "mtd: fix 'part' field data corruption in mtd_info"
This reverts commit6f2bf9c5ddwhich is commit37c5f9e80eupstream. It breaks the ABI and will be brought back later in an ABI-safe way. Bug: 161946584 Change-Id: Ia8f3f31c12c00cf304855fc77e033e7fd3b00498 Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
@@ -388,8 +388,10 @@ struct mtd_info {
|
|||||||
/* List of partitions attached to this MTD device */
|
/* List of partitions attached to this MTD device */
|
||||||
struct list_head partitions;
|
struct list_head partitions;
|
||||||
|
|
||||||
struct mtd_part part;
|
union {
|
||||||
struct mtd_master master;
|
struct mtd_part part;
|
||||||
|
struct mtd_master master;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
static inline struct mtd_info *mtd_get_master(struct mtd_info *mtd)
|
static inline struct mtd_info *mtd_get_master(struct mtd_info *mtd)
|
||||||
|
|||||||
Reference in New Issue
Block a user