summaryrefslogtreecommitdiff
path: root/privs.h
blob: 9f9cfdd0626dee927ca26138809eec7a8daf7a38 (plain)
1
2
3
4
5
6
7
8
#ifndef PRIVS_H
#define PRIVS_H

#include <stdbool.h>

extern void drop_privileges(bool enforce, uid_t uid, gid_t gid);

#endif /* PRIVS_H */
lue='20'>20space:mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-07-26 17:11:29 +0200
committerGreg Kroah-Hartman <gregkh@google.com>2016-07-26 14:53:19 -0700
commit112f563e1879ab73853fed9d875f45d96d5990fd (patch)
tree562d9e0674d7b9e8f2d603520252d727578bf483 /drivers
parentdfcba8626f55fe5d6ba6e2847178cbf629740773 (diff)
greybus: operation: fix broken response tracepoint
The response-received tracepoint is currently broken. Instead of parsing the received message header it was tracing a bunch of zeroed fields from an uninitialised response buffer. Fix this by moving the tracepoint after were the response buffer is initialised. Fixes: 7cb496e6890e ("greybus: tracing: fix message traces") Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Signed-off-by: Johan Hovold <johan@hovoldconsulting.com> Reviewed-by: Alex Elder <elder@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/greybus/operation.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/staging/greybus/operation.c b/drivers/staging/greybus/operation.c