Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 119196 | Differences between
and this patch

Collapse All | Expand All

(-)/ppscsi-beta2/ppscsi.c (-2 / +2 lines)
Lines 483-489 Link Here
483
	if ((!pha->cur_len) && pha->sg_count) {
483
	if ((!pha->cur_len) && pha->sg_count) {
484
		pha->sg_count--;
484
		pha->sg_count--;
485
		pha->sg_list++;
485
		pha->sg_list++;
486
		pha->cur_buf = page_address(pha->sg_list->page) + pha->sg_list->offset;
486
		pha->cur_buf = page_address(sg_page(pha->sg_list)) + pha->sg_list->offset;
487
		pha->cur_len = pha->sg_list->length;
487
		pha->cur_len = pha->sg_list->length;
488
	}
488
	}
489
}
489
}
Lines 570-576 Link Here
570
					pha->sg_count--;
570
					pha->sg_count--;
571
					pha->sg_list = 
571
					pha->sg_list = 
572
						(struct scatterlist *)pha->cur_cmd->request_buffer;
572
						(struct scatterlist *)pha->cur_cmd->request_buffer;
573
					pha->cur_buf = page_address(pha->sg_list->page) + pha->sg_list->offset;
573
					pha->cur_buf = page_address(sg_page(pha->sg_list)) + pha->sg_list->offset;
574
					pha->cur_len = pha->sg_list->length;
574
					pha->cur_len = pha->sg_list->length;
575
				} else {
575
				} else {
576
					pha->cur_buf = pha->cur_cmd->request_buffer;
576
					pha->cur_buf = pha->cur_cmd->request_buffer;

Return to bug 119196