kernel_optimize_test/drivers/dma-buf
Mathias Krause eb0b947e3b dma-buf: propagate errors from dma_buf_describe() on debugfs read
The callback function dma_buf_describe() returns an int not void so the
function pointer cast in dma_buf_show() is wrong. dma_buf_describe() can
also fail when acquiring the mutex gets interrupted so always returning
0 in dma_buf_show() is wrong, too.

Fix both issues by avoiding the indirection via dma_buf_show() and call
dma_buf_describe() directly. Rename it to dma_buf_debug_show() to get it
in line with the other functions.

This type mismatch was caught by the PaX RAP plugin.

Signed-off-by: Mathias Krause <minipli@googlemail.com>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Brad Spengler <spender@grsecurity.net>
Cc: PaX Team <pageexec@freemail.hu>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
2016-06-20 22:26:36 +05:30
..
dma-buf.c dma-buf: propagate errors from dma_buf_describe() on debugfs read 2016-06-20 22:26:36 +05:30
fence-array.c dma-buf/fence: add signal_on_any to the fence array v2 2016-06-02 09:28:04 +02:00
fence.c dma-buf/fence: make fence context 64 bit v2 2016-06-02 08:27:41 +02:00
Kconfig dma-buf/sync_file: de-stage sync_file 2016-04-29 17:37:10 -07:00
Makefile dma-buf/fence: add fence_array fences v6 2016-06-02 09:26:15 +02:00
reservation.c reservation: add headerdoc comments 2016-05-31 22:12:43 +05:30
seqno-fence.c dma-buf: Minor coding style fixes 2015-05-21 11:29:59 +05:30
sync_file.c dma-buf/sync_file: fix build warning with context format type 2016-06-03 20:43:43 +02:00