Skip to content

Commit 0129201

Browse files
cschauflerpcmoore
authored andcommitted
binder: initialize lsm_context structure
It is possible to reach the end of binder_transaction() without having set lsmctx. As the variable value is checked there it needs to be initialized. Suggested-by: Kees Bakker <kees@ijzerbout.nl> [PM: subj tweak to fit convention] Signed-off-by: Casey Schaufler <casey@schaufler-ca.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
1 parent 9c76eaf commit 0129201

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/android/binder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3017,7 +3017,7 @@ static void binder_transaction(struct binder_proc *proc,
30173017
struct binder_context *context = proc->context;
30183018
int t_debug_id = atomic_inc_return(&binder_last_id);
30193019
ktime_t t_start_time = ktime_get();
3020-
struct lsm_context lsmctx;
3020+
struct lsm_context lsmctx = { };
30213021
struct list_head sgc_head;
30223022
struct list_head pf_head;
30233023
const void __user *user_buffer = (const void __user *)

0 commit comments

Comments
 (0)