summaryrefslogtreecommitdiffstats
path: root/waltham-transmitter/transmitter-plugin/output.c
diff options
context:
space:
mode:
authorNaoko Tanibata <tnaoko@jp.adit-jv.com>2019-02-08 22:31:11 +0900
committerNaoko Tanibata <tnaoko@jp.adit-jv.com>2019-07-16 08:41:34 +0000
commit8f540a1b80bb64b1825993ef889be47c4c39625c (patch)
tree5cae3c84a29c205a8a4c6cbd3109f42dce32e67e /waltham-transmitter/transmitter-plugin/output.c
parentc8d58e440a95ae2375d91b2115d43b2d8af114e5 (diff)
transmitter: Correct error handling
When drm_get_dma_fd_from_view() fails, it returns negative value. Therefore output->renderer->dmafd shall be compared with a negative in error handling. Bug-AGL: SPEC-2057 Change-Id: I5457e7db8ff8673cdf32a65ff2c17721bfc8d7f0 Signed-off-by: Naoko Tanibata <tnaoko@jp.adit-jv.com> (cherry picked from commit 3f28f47c6d21a708d5ca1d8041a143fce23a574b)
Diffstat (limited to 'waltham-transmitter/transmitter-plugin/output.c')
-rw-r--r--waltham-transmitter/transmitter-plugin/output.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/waltham-transmitter/transmitter-plugin/output.c b/waltham-transmitter/transmitter-plugin/output.c
index f5b1c21..ef6e972 100644
--- a/waltham-transmitter/transmitter-plugin/output.c
+++ b/waltham-transmitter/transmitter-plugin/output.c
@@ -193,7 +193,7 @@ transmitter_output_repaint(struct weston_output *base,
output->renderer->dmafd =
api->get_dma_fd_from_view(&output->base, view);
- if(!output->renderer->dmafd) {
+ if(output->renderer->dmafd < 0) {
weston_log("Failed to get dmafd\n");
goto out;
}