mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2026-09-22 09:34:56 +02:00
qed: Fix shmem structure inconsistency between driver and the mfw.
[ Upstream commit5f672090e4] The structure shared between driver and the management FW (mfw) differ in sizes. This would lead to issues when driver try to access the structure members which are not-aligned with the mfw copy e.g., data_ptr usage in the case of mfw_tlv request. Align the driver structure with mfw copy, add reserved field(s) to driver structure for the members not used by the driver. Fixes:dd006921d6("qed: Add MFW interfaces for TLV request support.) Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com> Signed-off-by: Michal Kalderon <Michal.Kalderon@cavium.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
6133d8e499
commit
761ea5beff
@@ -11987,6 +11987,7 @@ struct public_global {
|
||||
u32 running_bundle_id;
|
||||
s32 external_temperature;
|
||||
u32 mdump_reason;
|
||||
u64 reserved;
|
||||
u32 data_ptr;
|
||||
u32 data_size;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user