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

Commit a1d60867 authored by Dan Carpenter's avatar Dan Carpenter Committed by Matthew Garrett
Browse files

asus-wmi: potential NULL dereference in show_call()



In the earlier check we assumed that "obj" could be NULL.  I looked at
some of the other places that call evaluate_object() and they check
for NULL as well.

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
parent 0986f25f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1343,7 +1343,7 @@ static int show_call(struct seq_file *m, void *data)
	else
		seq_printf(m, "%#x(%#x, %#x) = t:%d\n", asus->debug.method_id,
			   asus->debug.dev_id, asus->debug.ctrl_param,
			   obj->type);
			   obj ? obj->type : -1);

	kfree(obj);