Commit c25b716e authored by Matthew Wilcox (Oracle)'s avatar Matthew Wilcox (Oracle) Committed by Simona Vetter
Browse files

fbtft: Remove access to page->index

parent 4006be2f
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -337,9 +337,7 @@ static void fbtft_deferred_io(struct fb_info *info, struct list_head *pagereflis
	list_for_each_entry(pageref, pagereflist, list) {
		y_low = pageref->offset / info->fix.line_length;
		y_high = (pageref->offset + PAGE_SIZE - 1) / info->fix.line_length;
		dev_dbg(info->device,
			"page->index=%lu y_low=%d y_high=%d\n",
			pageref->page->index, y_low, y_high);
		dev_dbg(info->device, "y_low=%d y_high=%d\n", y_low, y_high);
		if (y_high > info->var.yres - 1)
			y_high = info->var.yres - 1;
		if (y_low < dirty_lines_start)