Skip to content

Commit

Permalink
[datapipe] Cache display_state_req_pipe output value. JB#37393
Browse files Browse the repository at this point in the history
Requested display state can be modified by the filter, thus caching the
original input can lead to subtle errors in case the datapipe value is
queried directly.

Switch to caching filtered output value.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Jan 18, 2017
1 parent d0f3b87 commit bd0ef6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion datapipe.h
Expand Up @@ -258,7 +258,7 @@ void mce_datapipe_quit(void);
display_state_repr(req_target));\
execute_datapipe(&display_state_req_pipe,\
GINT_TO_POINTER(req_target),\
USE_INDATA, CACHE_INDATA);\
USE_INDATA, CACHE_OUTDATA);\
}\
else {\
/* TODO: double check request handling and remove this logging */\
Expand Down

0 comments on commit bd0ef6c

Please sign in to comment.