Commit f6c58b06 authored by Wei Yongjun's avatar Wei Yongjun Committed by Thierry Escande
Browse files

BACKPORT: UPSTREAM: misc: fastrpc: Fix return value check in fastrpc_map_create()



In case of error, the function dma_buf_get() returns ERR_PTR() and never
returns NULL. The NULL test in the return value check should be replaced
with IS_ERR().

Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5127972f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment