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

Commit 13f7ae94 authored by Ethan Yonker's avatar Ethan Yonker
Browse files

Fix erroneous infinite loop in MTP inotify_t

Change-Id: I60ce40bd08e2ce9b04beb5dc4876b86f3688861b
parent 05360ba6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -714,7 +714,7 @@ int MtpStorage::inotify_t(void) {
			MTPE("inotify_t Can't read inotify events\n");
		}

		while (inotify_thread_kill.get_value() == 0) {
		while (i < len && inotify_thread_kill.get_value() == 0) {
			struct inotify_event *event = (struct inotify_event *) &buf[i];
			if (event->len) {
				MTPD("inotify event: wd: %i, mask: %x, name: %s\n", event->wd, event->mask, event->name);