]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
[media] staging: atomisp: Fix calling efivar_entry_get() with unaligned arguments
authorHans de Goede <hdegoede@redhat.com>
Sun, 28 May 2017 12:31:47 +0000 (09:31 -0300)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 7 Jun 2017 15:46:46 +0000 (12:46 -0300)
commit008d8e10054b3548cf9781083c26809486d7c07c
treef18f9b636c7276b15bbd0cf73503d852198a1609
parentfc993494134bfa76084529dda99ea8fcf23bec73
[media] staging: atomisp: Fix calling efivar_entry_get() with unaligned arguments

efivar_entry_get has certain alignment requirements and the atomisp
platform code was not honoring these, causing an oops by triggering the
WARN_ON in arch/x86/platform/efi/efi_64.c: virt_to_phys_or_null_size().

This commit fixes this by using the members of the efivar struct embedded
in the efivar_entry struct we kzalloc as arguments to efivar_entry_get(),
which is how all the other callers of efivar_entry_get() do this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/staging/media/atomisp/platform/intel-mid/atomisp_gmin_platform.c