Commit 01292013 authored by Casey Schaufler's avatar Casey Schaufler Committed by Paul Moore
Browse files

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: default avatarKees Bakker <kees@ijzerbout.nl>
[PM: subj tweak to fit convention]
Signed-off-by: default avatarCasey Schaufler <casey@schaufler-ca.com>
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 9c76eaf7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3017,7 +3017,7 @@ static void binder_transaction(struct binder_proc *proc,
	struct binder_context *context = proc->context;
	int t_debug_id = atomic_inc_return(&binder_last_id);
	ktime_t t_start_time = ktime_get();
	struct lsm_context lsmctx;
	struct lsm_context lsmctx = { };
	struct list_head sgc_head;
	struct list_head pf_head;
	const void __user *user_buffer = (const void __user *)