summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorMathias Krause <minipli@googlemail.com>2016-06-19 15:31:29 +0300
committerSumit Semwal <sumit.semwal@linaro.org>2016-06-20 19:56:36 +0300
commiteb0b947e3bf59d263f5bc7c080ce40333b515004 (patch)
tree826a3e829563dcae5e9a10420fee3718fb521231 /samples
parent996818869c9cc25581e81ff809d790651129cb4a (diff)
downloadlinux-eb0b947e3bf59d263f5bc7c080ce40333b515004.tar.xz
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>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions