Messages in this thread Patch in this message | | | From | David Cohen <> | Subject | [PATCH 2/3] x86: intel-mid: struct devs_id.name should have 'SFI_NAME_LEN' length | Date | Tue, 12 Nov 2013 14:13:39 -0800 |
| |
This patch fixes struct devs_id.name to match size of struct sfi_device_table_entry.size. Correct size if SFI_NAME_LEN instead of SFI_NAME_LEN + 1.
Signed-off-by: David Cohen <david.a.cohen@linux.intel.com> --- arch/x86/include/asm/intel-mid.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/include/asm/intel-mid.h b/arch/x86/include/asm/intel-mid.h index c810abd5178c..971cbb1abab3 100644 --- a/arch/x86/include/asm/intel-mid.h +++ b/arch/x86/include/asm/intel-mid.h @@ -28,7 +28,7 @@ extern struct sfi_rtc_table_entry sfi_mrtc_array[]; * its platform data. */ struct devs_id { - char name[SFI_NAME_LEN + 1]; + char name[SFI_NAME_LEN]; u8 type; u8 delay; void *(*get_platform_data)(void *info); -- 1.8.4.2
| |