summaryrefslogtreecommitdiff
path: root/arch/mips/include/asm/gio_device.h
diff options
context:
space:
mode:
authorTiezhu Yang <yangtiezhu@loongson.cn>2020-01-10 04:30:42 +0300
committerPaul Burton <paulburton@kernel.org>2020-01-11 01:10:24 +0300
commit72d052e28d1d2363f9107be63ef3a3afdea6143c (patch)
tree4ff25b6864f76dc173d62327ef11ab24c5e9779f /arch/mips/include/asm/gio_device.h
parent23c25c73253075f41466438ed1b42ece9004ba20 (diff)
downloadlinux-72d052e28d1d2363f9107be63ef3a3afdea6143c.tar.xz
MIPS: Loongson: Fix potential NULL dereference in loongson3_platform_init()
If kzalloc fails, it should return -ENOMEM, otherwise may trigger a NULL pointer dereference. Fixes: 3adeb2566b9b ("MIPS: Loongson: Improve LEFI firmware interface") Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn> Signed-off-by: Paul Burton <paulburton@kernel.org> Cc: Ralf Baechle <ralf@linux-mips.org> Cc: Huacai Chen <chenhc@lemote.com> Cc: Jiaxun Yang <jiaxun.yang@flygoat.com> Cc: linux-mips@vger.kernel.org Cc: linux-kernel@vger.kernel.org
Diffstat (limited to 'arch/mips/include/asm/gio_device.h')
0 files changed, 0 insertions, 0 deletions