Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d91205a3 authored by c_mtharu's avatar c_mtharu
Browse files

msm: ADSPRPC: Fix for null-ptr-dereference



Check proc_name pointer for NULL before passing
it to copy_from_user function.

Change-Id: I1d7d9dec111a68eaabc65838d97b10489b41a483
Acked-by: default avatarChenna Kesava Raju <chennak@qti.qualcomm.com>
Signed-off-by: default avatarTharun Kumar Merugu <mtharu@codeaurora.org>
parent d94e9af7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1775,6 +1775,7 @@ static int fastrpc_init_process(struct fastrpc_file *fl,
		err = -ENOTTY;
	}
bail:
	kfree(proc_name);
	if (err && (init->flags == FASTRPC_INIT_CREATE_STATIC))
		me->staticpd_flags = 0;
	if (mem && err) {