diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/Kconfig.debug | 8 | ||||
| -rw-r--r-- | lib/scatterlist.c | 9 |
2 files changed, 10 insertions, 7 deletions
diff --git a/lib/Kconfig.debug b/lib/Kconfig.debug index c6e854f215fa..812c28207baf 100644 --- a/lib/Kconfig.debug +++ b/lib/Kconfig.debug | |||
| @@ -440,7 +440,7 @@ config LOCKDEP | |||
| 440 | bool | 440 | bool |
| 441 | depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT | 441 | depends on DEBUG_KERNEL && TRACE_IRQFLAGS_SUPPORT && STACKTRACE_SUPPORT && LOCKDEP_SUPPORT |
| 442 | select STACKTRACE | 442 | select STACKTRACE |
| 443 | select FRAME_POINTER if !X86 && !MIPS && !PPC && !ARM_UNWIND | 443 | select FRAME_POINTER if !X86 && !MIPS && !PPC && !ARM_UNWIND && !S390 |
| 444 | select KALLSYMS | 444 | select KALLSYMS |
| 445 | select KALLSYMS_ALL | 445 | select KALLSYMS_ALL |
| 446 | 446 | ||
| @@ -620,7 +620,7 @@ config ARCH_WANT_FRAME_POINTERS | |||
| 620 | config FRAME_POINTER | 620 | config FRAME_POINTER |
| 621 | bool "Compile the kernel with frame pointers" | 621 | bool "Compile the kernel with frame pointers" |
| 622 | depends on DEBUG_KERNEL && \ | 622 | depends on DEBUG_KERNEL && \ |
| 623 | (CRIS || M68K || M68KNOMMU || FRV || UML || S390 || \ | 623 | (CRIS || M68K || M68KNOMMU || FRV || UML || \ |
| 624 | AVR32 || SUPERH || BLACKFIN || MN10300) || \ | 624 | AVR32 || SUPERH || BLACKFIN || MN10300) || \ |
| 625 | ARCH_WANT_FRAME_POINTERS | 625 | ARCH_WANT_FRAME_POINTERS |
| 626 | default y if (DEBUG_INFO && UML) || ARCH_WANT_FRAME_POINTERS | 626 | default y if (DEBUG_INFO && UML) || ARCH_WANT_FRAME_POINTERS |
| @@ -809,13 +809,13 @@ config FAULT_INJECTION_STACKTRACE_FILTER | |||
| 809 | depends on FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT | 809 | depends on FAULT_INJECTION_DEBUG_FS && STACKTRACE_SUPPORT |
| 810 | depends on !X86_64 | 810 | depends on !X86_64 |
| 811 | select STACKTRACE | 811 | select STACKTRACE |
| 812 | select FRAME_POINTER if !PPC | 812 | select FRAME_POINTER if !PPC && !S390 |
| 813 | help | 813 | help |
| 814 | Provide stacktrace filter for fault-injection capabilities | 814 | Provide stacktrace filter for fault-injection capabilities |
| 815 | 815 | ||
| 816 | config LATENCYTOP | 816 | config LATENCYTOP |
| 817 | bool "Latency measuring infrastructure" | 817 | bool "Latency measuring infrastructure" |
| 818 | select FRAME_POINTER if !MIPS && !PPC | 818 | select FRAME_POINTER if !MIPS && !PPC && !S390 |
| 819 | select KALLSYMS | 819 | select KALLSYMS |
| 820 | select KALLSYMS_ALL | 820 | select KALLSYMS_ALL |
| 821 | select STACKTRACE | 821 | select STACKTRACE |
diff --git a/lib/scatterlist.c b/lib/scatterlist.c index b7b449dafbe5..a295e404e908 100644 --- a/lib/scatterlist.c +++ b/lib/scatterlist.c | |||
| @@ -347,9 +347,12 @@ bool sg_miter_next(struct sg_mapping_iter *miter) | |||
| 347 | sg_miter_stop(miter); | 347 | sg_miter_stop(miter); |
| 348 | 348 | ||
| 349 | /* get to the next sg if necessary. __offset is adjusted by stop */ | 349 | /* get to the next sg if necessary. __offset is adjusted by stop */ |
| 350 | if (miter->__offset == miter->__sg->length && --miter->__nents) { | 350 | while (miter->__offset == miter->__sg->length) { |
| 351 | miter->__sg = sg_next(miter->__sg); | 351 | if (--miter->__nents) { |
| 352 | miter->__offset = 0; | 352 | miter->__sg = sg_next(miter->__sg); |
| 353 | miter->__offset = 0; | ||
| 354 | } else | ||
| 355 | return false; | ||
| 353 | } | 356 | } |
| 354 | 357 | ||
| 355 | /* map the next page */ | 358 | /* map the next page */ |
