summaryrefslogtreecommitdiff
path: root/include/acpi/actbl3.h
diff options
context:
space:
mode:
authorFelix Manlunas <felix.manlunas@cavium.com>2017-02-07 12:10:58 -0800
committerDavid S. Miller <davem@davemloft.net>2017-02-07 15:37:43 -0500
commit76e0e70e6452b971a69cc9794ff4a6715c11f7f2 (patch)
treea9914ee97e172cb0be8b506033f81f9988f74f97 /include/acpi/actbl3.h
parentca6d4480f87db9d9470d3d7bbe445953fa105e57 (diff)
liquidio: do not dereference pointer if it's NULL
Fix smatch errors by not dereferencing iq pointer if it's NULL. See http://marc.info/?l=kernel-janitors&m=148637299004834&w=2 Reported-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/acpi/actbl3.h')
0 files changed, 0 insertions, 0 deletions
absolute CRC references into relative references into .rodata where the actual CRC value is stored. So redefine all CRC fields and variables as u32, and redefine the __CRC_SYMBOL() macro for 64 bit builds to emit the CRC reference using inline assembler (which is necessary since 64-bit C code cannot use 32-bit types to hold memory addresses, even if they are ultimately resolved using values that do not exceed 0xffffffff). To avoid potential problems with legacy 32-bit architectures using legacy toolchains, the equivalent C definition of the kcrctab entry is retained for 32-bit architectures. Note that this mostly reverts commit d4703aefdbc8 ("module: handle ppc64 relocating kcrctabs when CONFIG_RELOCATABLE=y") Acked-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-generic/export.h11
-rw-r--r--include/linux/export.h14
-rw-r--r--include/linux/module.h14
3 files changed, 27 insertions, 12 deletions
diff --git a/include/asm-generic/export.h b/include/asm-generic/export.h