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

Commit 135da341 authored by Rajesh Kemisetti's avatar Rajesh Kemisetti
Browse files

msm: kgsl: Fix typo in ctxt_type_table traversal length



Check ctxt_type_table till the end while traversing for
GPU context type.

Change-Id: I9fcc6d8c2482d3bb16ee26925908d5410aa2761c
Signed-off-by: default avatarRajesh Kemisetti <rajeshk@codeaurora.org>
parent 51683be8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -145,7 +145,7 @@ static inline const char *get_api_type_str(unsigned int type)
{
	int i;

	for (i = 0; i < ARRAY_SIZE(ctxt_type_table) - 1; i++) {
	for (i = 0; i < ARRAY_SIZE(ctxt_type_table); i++) {
		if (ctxt_type_table[i].type == type)
			return ctxt_type_table[i].str;
	}