linux-uconsole/drivers/dma-buf
John Stultz 58f0e25d0d ANDROID: dma-buf: Fix error path on system heaps use of the page pool
Daniel Mentz relayed to me that Janghyuck Kim noted that
dma_buf_page_pool_create() returns NULL on error, so the
IS_ERR() check on the return value will never be true.

This patch fixes up the checking so we look for NULL instead and
properly return ENOMEM in that case.

Cc: Daniel Mentz <danielmentz@google.com>
Reported-by: Janghyuck Kim <janghyuck.kim@samsung.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Fixes: 23762f02e1 ("ANDROID: dma-buf: system_heap: Add pagepool support to system heap")
Change-Id: Ia428e262cda5cc6bd39a3fbcddade7877473a563
2021-03-19 09:04:07 +00:00
..
heaps ANDROID: dma-buf: Fix error path on system heaps use of the page pool 2021-03-19 09:04:07 +00:00
dma-buf-sysfs-stats.c ANDROID: dmabuf: Add mmap_count to struct dmabuf 2021-02-11 16:51:57 +00:00
dma-buf-sysfs-stats.h BACKPORT: FROMLIST: dmabuf: Add the capability to expose DMA-BUF stats in sysfs 2021-02-02 18:47:43 +00:00
dma-buf.c ANDROID: dma-buf: add get_each_dmabuf function 2021-03-09 03:44:12 +00:00
dma-fence-array.c dma-fence: Propagate errors to dma-fence-array container 2019-08-12 08:25:52 +01:00
dma-fence-chain.c dma-buf: fence-chain: Document missing dma_fence_chain_init() parameter in kerneldoc 2020-09-03 17:47:02 +05:30
dma-fence.c dma-buf: fix kernel-doc warning in dma-fence.c 2020-09-02 14:39:15 +02:00
dma-heap.c ANDROID: Add EXPORT_SYMBOL_GPL for dma_heap_get_name 2021-02-10 19:42:33 +00:00
dma-resv.c dma-buf/dma-resv: Respect num_fences when initializing the shared fence list. 2020-12-30 11:54:26 +01:00
Kconfig BACKPORT: FROMLIST: dmabuf: Add the capability to expose DMA-BUF stats in sysfs 2021-02-02 18:47:43 +00:00
Makefile BACKPORT: FROMLIST: dmabuf: Add the capability to expose DMA-BUF stats in sysfs 2021-02-02 18:47:43 +00:00
selftest.c dma-buf: Introduce selftesting framework 2019-08-19 18:01:34 +01:00
selftest.h dma-buf: Introduce selftesting framework 2019-08-19 18:01:34 +01:00
selftests.h Merge drm/drm-next into drm-intel-next-queued 2020-06-25 18:05:03 +03:00
seqno-fence.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
st-dma-fence-chain.c dma-buf: fix dma-fence-chain out of order test 2020-07-02 15:21:40 +02:00
st-dma-fence.c dmabuf: Mark up onstack timer for selftests 2019-08-20 13:49:15 +01:00
sw_sync.c compat_ioctl: move more drivers to compat_ptr_ioctl 2019-10-23 17:23:44 +02:00
sync_debug.c Linux 5.2-rc5 2019-06-19 12:07:29 +02:00
sync_debug.h
sync_file.c - A fix for a memory leak in the dma-buf support 2019-12-09 17:13:19 +10:00
sync_trace.h
udmabuf.c drm-misc-next for 5.10: 2020-09-23 09:52:24 +10:00