memory: emif: check the pointer temp in get_device_details()
authorJia-Ju Bai <baijiaju1990@gmail.com>
Fri, 25 Feb 2022 13:25:52 +0000 (05:25 -0800)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Fri, 4 Mar 2022 08:08:27 +0000 (09:08 +0100)
commit5b5ab1bfa1898c6d52936a57c25c5ceba2cb2f87
treecaccc4de583c78f5690f3518960597b4c6fe701d
parentfd7bd80b46373887b390852f490f21b07e209498
memory: emif: check the pointer temp in get_device_details()

The pointer temp is allocated by devm_kzalloc(), so it should be
checked for error handling.

Fixes: 7ec944538dde ("memory: emif: add basic infrastructure for EMIF driver")
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Link: https://lore.kernel.org/r/20220225132552.27894-1-baijiaju1990@gmail.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
drivers/memory/emif.c