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

Commit 08932156 authored by Alex Deucher's avatar Alex Deucher Committed by Dave Airlie
Browse files

drm/radeon: r6xx/r7xx: fix possible oops in r600_page_table_cleanup()

parent 53c379e9
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -121,6 +121,9 @@ void r600_page_table_cleanup(struct drm_device *dev, struct drm_ati_pcigart_info
	int pages;
	int i;

	if (!entry)
		return;

	if (gart_info->bus_addr) {
		max_pages = (gart_info->table_size / sizeof(u32));
		pages = (entry->pages <= max_pages)