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

Commit 8c4ac094 authored by Stefan Richter's avatar Stefan Richter
Browse files

ieee1394: sbp2: prepare for s/g chaining

parent dd430ca2
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1489,7 +1489,7 @@ static void sbp2_prep_command_orb_sg(struct sbp2_command_orb *orb,


		/* loop through and fill out our SBP-2 page tables
		/* loop through and fill out our SBP-2 page tables
		 * (and split up anything too large) */
		 * (and split up anything too large) */
		for (i = 0, sg_count = 0 ; i < count; i++, sgpnt++) {
		for (i = 0, sg_count = 0; i < count; i++, sgpnt = sg_next(sgpnt)) {
			sg_len = sg_dma_len(sgpnt);
			sg_len = sg_dma_len(sgpnt);
			sg_addr = sg_dma_address(sgpnt);
			sg_addr = sg_dma_address(sgpnt);
			while (sg_len) {
			while (sg_len) {