2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-26 14:14:01 +08:00
linux-next/arch/powerpc
Anton Blanchard cd32e2dcc9 powerpc: Fix bad NULL pointer check in udbg_uart_getc_poll()
We have some code in udbg_uart_getc_poll() that tries to protect
against a NULL udbg_uart_in, but gets it all wrong.

Found with the LLVM static analyzer (scan-build).

Fixes: 309257484c ("powerpc: Cleanup udbg_16550 and add support for LPC PIO-only UARTs")
Signed-off-by: Anton Blanchard <anton@samba.org>
[mpe: Add some newlines for readability while we're here]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2014-11-12 13:47:20 +11:00
..
boot powerpc/boot: Parse chosen/cmdline-timeout parameter 2014-11-10 09:59:30 +11:00
configs Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mpe/linux 2014-10-21 07:48:56 -07:00
crypto powerpc: Fix compile of sha1-powerpc-asm.S on 32-bit 2013-03-05 16:56:26 +11:00
include powerpc: Don't use local named register variable in current_thread_info 2014-11-10 09:59:31 +11:00
kernel powerpc: Fix bad NULL pointer check in udbg_uart_getc_poll() 2014-11-12 13:47:20 +11:00
kvm powerpc: Remove superfluous bootmem includes 2014-11-10 09:59:26 +11:00
lib powerpc: Remove unused devm_ioremap_prot() 2014-11-10 09:59:28 +11:00
math-emu powerpc: Correct emulated mtfsf instruction 2014-04-07 10:33:11 +10:00
mm powerpc: Move sparse_init() into initmem_init 2014-11-10 09:59:26 +11:00
net net: bpf: be friendly to kmemcheck 2014-09-09 16:58:56 -07:00
oprofile powerpc: Ensure global functions include their prototype 2014-09-25 23:14:42 +10:00
perf powerpc: Replace __get_cpu_var uses 2014-11-03 12:12:32 +11:00
platforms powerpc/gamecube/wii: delete unneeded test before of_node_put 2014-11-10 09:59:35 +11:00
sysdev powerpc/mpc5xxx: delete unneeded test before of_node_put 2014-11-10 09:59:34 +11:00
xmon powerpc: Convert power off logic to pm_power_off 2014-11-03 12:12:51 +11:00
Kconfig powerpc: Remove bootmem allocator 2014-11-10 09:59:25 +11:00
Kconfig.debug Patch queue for ppc - 2014-08-01 2014-08-05 09:58:11 +02:00
Makefile powerpc: Add POWER8 CPU selection 2014-09-25 23:14:49 +10:00
relocs_check.pl Fix warning typo "CONFIG_RELCOATABLE" 2013-05-29 15:11:30 +02:00