Don't panic on chained s/g lists. Only compile-tested. Signed-off-by: Stefan Richter <[email protected]> --- Update: The loop body doesn't honor the 80 columns limit either. Can be cleaned up later by renaming a variable. drivers/ieee1394/sbp2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux/drivers/ieee1394/sbp2.c =================================================================== --- linux.orig/drivers/ieee1394/sbp2.c +++ linux/drivers/ieee1394/sbp2.c @@ -1489,7 +1489,7 @@ static void sbp2_prep_command_orb_sg(str /* loop through and fill out our SBP-2 page tables * (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_addr = sg_dma_address(sgpnt); while (sg_len) { -- Stefan Richter -=====-=-=== =-== --=-- http://arcgraph.de/sr/ - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- References:
- 2.6.24-rc1-54866f032307063776b4eff7eadb131d47f9f9b4 fails to boot: kernel BUG at include/linux/scatterlist.h:49!
- From: "Torsten Kaiser" <[email protected]>
- Re: 2.6.24-rc1-54866f032307063776b4eff7eadb131d47f9f9b4 fails to boot: kernel BUG at include/linux/scatterlist.h:49!
- From: Stefan Richter <[email protected]>
- Re: 2.6.24-rc1-54866f032307063776b4eff7eadb131d47f9f9b4 fails to boot: kernel BUG at include/linux/scatterlist.h:49!
- From: "Torsten Kaiser" <[email protected]>
- Re: 2.6.24-rc1-54866f032307063776b4eff7eadb131d47f9f9b4 fails to boot: kernel BUG at include/linux/scatterlist.h:49!
- From: Stefan Richter <[email protected]>
- Re: 2.6.24-rc1-54866f032307063776b4eff7eadb131d47f9f9b4 fails to boot: kernel BUG at include/linux/scatterlist.h:49!
- From: Jens Axboe <[email protected]>
- Re: 2.6.24-rc1-54866f032307063776b4eff7eadb131d47f9f9b4 fails to boot: kernel BUG at include/linux/scatterlist.h:49!
- From: Jens Axboe <[email protected]>
- Re: 2.6.24-rc1-54866f032307063776b4eff7eadb131d47f9f9b4 fails to boot: kernel BUG at include/linux/scatterlist.h:49!
- From: "Torsten Kaiser" <[email protected]>
- [PATCH 1/3 2.6.24-rc1-gitX] ieee1394: iso and async streams: s/g list fix
- From: Stefan Richter <[email protected]>
- [PATCH 2/3 2.6.24-rc1-gitX] ieee1394: sbp2: s/g list fix
- From: Stefan Richter <[email protected]>
- 2.6.24-rc1-54866f032307063776b4eff7eadb131d47f9f9b4 fails to boot: kernel BUG at include/linux/scatterlist.h:49!
- Prev by Date: Re: [PATCH, RESEND] tmpfs: fix mounts when size is less than the page size
- Next by Date: Re: 2.6.24-rc1-82798a1 compile failure (x86_64)
- Previous by thread: [PATCH 3/3 2.6.24-rc1-gitX] firewire: fw-sbp2: s/g list fix
- Next by thread: Re: 2.6.24-rc1-54866f032307063776b4eff7eadb131d47f9f9b4 fails to boot: kernel BUG at include/linux/scatterlist.h:49!
- Index(es):