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

Commit 537e4869 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: don't use sscanf()"

parents 56553694 5ae82c90
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -138,12 +138,12 @@ kgsl_get_pagetable(unsigned long name)
static struct kgsl_pagetable *
_get_pt_from_kobj(struct kobject *kobj)
{
	unsigned long ptname;
	unsigned int ptname;

	if (!kobj)
		return NULL;

	if (sscanf(kobj->name, "%ld", &ptname) != 1)
	if (kstrtou32(kobj->name, 0, &ptname))
		return NULL;

	return kgsl_get_pagetable(ptname);
+2 −2
Original line number Diff line number Diff line
@@ -74,12 +74,12 @@ static struct kgsl_process_private *
_get_priv_from_kobj(struct kobject *kobj)
{
	struct kgsl_process_private *private;
	unsigned long name;
	unsigned int name;

	if (!kobj)
		return NULL;

	if (sscanf(kobj->name, "%ld", &name) != 1)
	if (kstrtou32(kobj->name, 0, &name))
		return NULL;

	list_for_each_entry(private, &kgsl_driver.process_list, list) {