linux_compat: fix potential NULL pointer access
authorMarek Szyprowski <m.szyprowski@samsung.com>
Wed, 2 Oct 2019 12:37:20 +0000 (14:37 +0200)
committerTom Rini <trini@konsulko.com>
Thu, 31 Oct 2019 11:22:53 +0000 (07:22 -0400)
commit2ad98ab8f68c71e2db140c6d5f1020aa6fbacb9e
tree5fa807dd8e6b61f15ac83c6422704e117aca591f
parent9b3fbb2b439a717dda0eaa34cb455a9ce38532ef
linux_compat: fix potential NULL pointer access

malloc_cache_aligned() might return zero, so fix potential NULL pointer
access if __GFP_ZERO flag is set.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Ralph Siemsen <ralph.siemsen@linaro.org>
lib/linux_compat.c