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

Commit 5a221cdf authored by Jin Qian's avatar Jin Qian
Browse files

ANDROID: uid_sys_stats: return full size when state is not changed.

Userspace keeps retrying when it sees nothing is written.

Bug: 34364961
Change-Id: Ie288c90c6a206fb863dcad010094fcd1373767aa
parent 3d660c73
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -359,7 +359,7 @@ static ssize_t uid_procstat_write(struct file *file,

	if (uid_entry->state == state) {
		mutex_unlock(&uid_lock);
		return 0;
		return count;
	}

	memset(&uid_entry->io[UID_STATE_TOTAL_CURR], 0,