diff options
Diffstat (limited to 'arch/blackfin/kernel/cplbinit.c')
-rw-r--r-- | arch/blackfin/kernel/cplbinit.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/blackfin/kernel/cplbinit.c b/arch/blackfin/kernel/cplbinit.c index f2db6a5e2b5b..7392ac2d2c29 100644 --- a/arch/blackfin/kernel/cplbinit.c +++ b/arch/blackfin/kernel/cplbinit.c | |||
@@ -163,8 +163,8 @@ static struct cplb_desc cplb_data[] = { | |||
163 | 163 | ||
164 | static u16 __init lock_kernel_check(u32 start, u32 end) | 164 | static u16 __init lock_kernel_check(u32 start, u32 end) |
165 | { | 165 | { |
166 | if ((start <= (u32) _stext && end >= (u32) _end) | 166 | if ((end <= (u32) _end && end >= (u32)_stext) || |
167 | || (start >= (u32) _stext && end <= (u32) _end)) | 167 | (start <= (u32) _end && start >= (u32)_stext)) |
168 | return IN_KERNEL; | 168 | return IN_KERNEL; |
169 | return 0; | 169 | return 0; |
170 | } | 170 | } |