* [patch] 64 bit locking in ieee1394/nodemgr.c
@ 2001-08-16 4:39 jes
2001-08-16 5:11 ` Ben Collins
0 siblings, 1 reply; 2+ messages in thread
From: jes @ 2001-08-16 4:39 UTC (permalink / raw)
To: bcollins; +Cc: torvalds, alan, linux-kernel
Hi
The drivers/ieee1394/nodemgr.c driver tries to save cpu_flags in a 32
bit type which is kinda bad.
Here is a patch.
Jes
--- drivers/ieee1394/nodemgr.c~ Wed Aug 8 00:08:04 2001
+++ drivers/ieee1394/nodemgr.c Thu Aug 16 00:37:15 2001
@@ -208,7 +208,7 @@
nodeid_t nodeid = LOCAL_BUS;
quadlet_t buffer[5], quad;
octlet_t base = CSR_REGISTER_BASE + CSR_CONFIG_ROM;
- int flags;
+ unsigned long flags;
/* We need to detect when the ConfigROM's generation has changed,
* so we only update the node's info when it needs to be. */
@@ -389,7 +389,7 @@
static void nodemgr_add_host(struct hpsb_host *host)
{
struct host_info *hi = kmalloc (sizeof (struct host_info), GFP_KERNEL);
- int flags;
+ unsigned long flags;
if (!hi) {
HPSB_ERR ("Out of memory in Node Manager");
@@ -416,7 +416,7 @@
{
struct list_head *lh;
struct host_info *hi = NULL;
- int flags;
+ unsigned long flags;
spin_lock_irqsave (&host_info_lock, flags);
lh = host_info_list.next;
@@ -451,7 +451,7 @@
struct list_head *lh;
struct host_info *hi = NULL;
struct node_entry *ne;
- int flags;
+ unsigned long flags;
/* First remove all node entries for this host */
write_lock_irqsave(&node_lock, flags);
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [patch] 64 bit locking in ieee1394/nodemgr.c
2001-08-16 4:39 [patch] 64 bit locking in ieee1394/nodemgr.c jes
@ 2001-08-16 5:11 ` Ben Collins
0 siblings, 0 replies; 2+ messages in thread
From: Ben Collins @ 2001-08-16 5:11 UTC (permalink / raw)
To: jes; +Cc: torvalds, alan, linux-kernel
On Thu, Aug 16, 2001 at 12:39:03AM -0400, jes@trained-monkey.org wrote:
> Hi
>
> The drivers/ieee1394/nodemgr.c driver tries to save cpu_flags in a 32
> bit type which is kinda bad.
Thanks. I'll apply all of the 1394 patches.
--
.----------=======-=-======-=========-----------=====------------=-=-----.
/ Ben Collins -- ...on that fantastic voyage... -- Debian GNU/Linux \
` bcollins@debian.org -- bcollins@openldap.org -- bcollins@linux.com '
`---=========------=======-------------=-=-----=-===-======-------=--=---'
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-08-16 5:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-08-16 4:39 [patch] 64 bit locking in ieee1394/nodemgr.c jes
2001-08-16 5:11 ` Ben Collins
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox