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

Commit 0a7ec06a authored by Laura Abbott's avatar Laura Abbott Committed by Gerrit - the friendly Code Review server
Browse files

ion: Use up_read where appropriate



show_ion_usage protects against modification with a down_read.
Close it by protecting with an up_read not an up_write.

Change-Id: I2acd29188cde13cc11b4f6c8d6e35082ba37c08a
Signed-off-by: default avatarLaura Abbott <lauraa@codeaurora.org>
parent e32562d8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1727,7 +1727,7 @@ void show_ion_usage(struct ion_device *dev)
			heap->debug_show(heap, NULL, 0);

	}
	up_write(&dev->lock);
	up_read(&dev->lock);
}

#ifdef DEBUG_HEAP_SHRINKER