Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d9242bcb authored by Bao D. Nguyen's avatar Bao D. Nguyen
Browse files

mmc: core: Fix placement of crash_on_err in mmc_host's struct



The crash_on_err member of the mmc_host structure is incorrectly
placed in the mmc_host's private data area. This error could cause data
corruption and unintended behavior.

Change-Id: I396226800d186093c9cb41f74309f4a46f781c45
Signed-off-by: default avatarBao D. Nguyen <nguyenb@codeaurora.org>
parent 01697ba5
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -709,8 +709,8 @@ struct mmc_host {


	atomic_t rpmb_req_pending;
	atomic_t rpmb_req_pending;
	struct mutex		rpmb_req_mutex;
	struct mutex		rpmb_req_mutex;
	unsigned long		private[0] ____cacheline_aligned;
	bool crash_on_err;	/* crash the system on error */
	bool crash_on_err;	/* crash the system on error */
	unsigned long		private[0] ____cacheline_aligned;
};
};


struct device_node;
struct device_node;