* [Upstream] Stop ARM boards crashing with CUPS is loaded
@ 2010-07-12 12:14 Lee Jones
2010-07-12 13:38 ` Woody Suwalski
2010-07-12 18:37 ` Randy Dunlap
0 siblings, 2 replies; 3+ messages in thread
From: Lee Jones @ 2010-07-12 12:14 UTC (permalink / raw)
To: linux-kernel, akpm
[-- Attachment #1: Type: text/plain, Size: 402 bytes --]
Please find attached a patch which rectifies the following bug.
When CUPS loads, it tries to load several drivers that it may need.
When one of these drivers, specifically parport_pc is loaded on ARM
based systems, it causes a segmentation fault as the address is not
writable on non-PC based architectures. This code prevents this
driver from being compiled on said architectures.
Kind regards,
Lee
[-- Attachment #2: 0001-UBUNTU-Upstream-Stop-ARM-boards-crashing-with-CUPS-i.patch --]
[-- Type: text/x-patch, Size: 1309 bytes --]
>From e7552c2cfbceb22af2765b7bea91e0ea830010b7 Mon Sep 17 00:00:00 2001
From: Lee Jones <lee.jones@canonical.com>
Date: Mon, 12 Jul 2010 12:41:54 +0100
Subject: [PATCH] UBUNTU: [Upstream] Stop ARM boards crashing with CUPS is loaded
BugLink: http://bugs.launchpad.net/bugs/601226
When CUPS loads, it tries to load several drivers that it may need.
When one of these drivers, specifically parport_pc is loaded on ARM
based systems, it causes a segmentation fault as the address is not
writable on non-PC based architectures. This code prevents this
driver from being compiled on said architectures.
Signed-off-by: Lee Jones <lee.jones@canonical.com>
---
drivers/parport/Kconfig | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/parport/Kconfig b/drivers/parport/Kconfig
index 855f389..ef1c666 100644
--- a/drivers/parport/Kconfig
+++ b/drivers/parport/Kconfig
@@ -36,7 +36,7 @@ if PARPORT
config PARPORT_PC
tristate "PC-style hardware"
depends on (!SPARC64 || PCI) && !SPARC32 && !M32R && !FRV && \
- (!M68K || ISA) && !MN10300 && !AVR32 && !BLACKFIN
+ (!M68K || ISA) && !MN10300 && !AVR32 && !BLACKFIN && !ARM
---help---
You should say Y here if you have a PC-style parallel port. All
IBM PC compatible computers and some Alphas have PC-style
--
1.7.0.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Upstream] Stop ARM boards crashing with CUPS is loaded
2010-07-12 12:14 [Upstream] Stop ARM boards crashing with CUPS is loaded Lee Jones
@ 2010-07-12 13:38 ` Woody Suwalski
2010-07-12 18:37 ` Randy Dunlap
1 sibling, 0 replies; 3+ messages in thread
From: Woody Suwalski @ 2010-07-12 13:38 UTC (permalink / raw)
To: Lee Jones; +Cc: linux-kernel, akpm
Lee Jones wrote:
> Please find attached a patch which rectifies the following bug.
>
> When CUPS loads, it tries to load several drivers that it may need.
> When one of these drivers, specifically parport_pc is loaded on ARM
> based systems, it causes a segmentation fault as the address is not
> writable on non-PC based architectures. This code prevents this
> driver from being compiled on said architectures.
>
> Kind regards,
> Lee
>
Not exactly true. Netwinders based on Armc4l SA110 have implemeted
Parallel port hardware.
It can be used for PP-CDroms and (of course) printing.
I do not claim that the platform is of a great importance anymore, but
blanket statements to remove RTC or PPort or KBD from ARM are not correct...
Woody
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Upstream] Stop ARM boards crashing with CUPS is loaded
2010-07-12 12:14 [Upstream] Stop ARM boards crashing with CUPS is loaded Lee Jones
2010-07-12 13:38 ` Woody Suwalski
@ 2010-07-12 18:37 ` Randy Dunlap
1 sibling, 0 replies; 3+ messages in thread
From: Randy Dunlap @ 2010-07-12 18:37 UTC (permalink / raw)
To: Lee Jones; +Cc: linux-kernel, akpm
On Mon, 12 Jul 2010 13:14:21 +0100 Lee Jones wrote:
> Please find attached a patch which rectifies the following bug.
>
> When CUPS loads, it tries to load several drivers that it may need.
> When one of these drivers, specifically parport_pc is loaded on ARM
> based systems, it causes a segmentation fault as the address is not
> writable on non-PC based architectures. This code prevents this
> driver from being compiled on said architectures.
Do you have any specific information on where the segfault occurs?
and please read <kernel-source-tree>/Documentation/SubmittingPatches
and possibly Documentation/email-clients.txt .
thanks,
---
~Randy
*** Remember to use Documentation/SubmitChecklist when testing your code ***
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-07-12 18:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-12 12:14 [Upstream] Stop ARM boards crashing with CUPS is loaded Lee Jones
2010-07-12 13:38 ` Woody Suwalski
2010-07-12 18:37 ` Randy Dunlap
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox