commit | 682a60446b150f3058b77806768977f4dff0fffb | [log] [tgz] |
---|---|---|
author | Wei Yongjun <weiyongjun1@huawei.com> | Sat Feb 16 01:35:43 2019 +0000 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Feb 19 14:50:11 2019 +0100 |
tree | 8b1db04a3ac3f90afdf89563a542b1f28c40e66f | |
parent | 3013bf62b67aef921bc2e9ba10e639a022002d02 [diff] |
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: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>