All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix 64bit warning for firestream
@ 2004-07-17 11:36 Andi Kleen
  0 siblings, 0 replies; only message in thread
From: Andi Kleen @ 2004-07-17 11:36 UTC (permalink / raw)
  To: chas; +Cc: linux-atm-general, netdev


Fix obvious 64bit issue in firestream driver. I haven't tested
if it actually works on 64bit due to lack of hardware.

-Andi

diff -u linux-2.6.8rc1-amd64-pre2/drivers/atm/firestream.c-o linux-2.6.8rc1-amd64-pre2/drivers/atm/firestream.c
--- linux-2.6.8rc1-amd64-pre2/drivers/atm/firestream.c-o	2004-07-17 13:26:01.000000000 +0200
+++ linux-2.6.8rc1-amd64-pre2/drivers/atm/firestream.c	2004-07-17 13:33:49.525480904 +0200
@@ -1380,7 +1380,7 @@
 
 	if (alignment <= 0x10) {
 		t = kmalloc (size, flags);
-		if ((unsigned int)t & (alignment-1)) {
+		if ((unsigned long)t & (alignment-1)) {
 			printk ("Kmalloc doesn't align things correctly! %p\n", t);
 			kfree (t);
 			return aligned_kmalloc (size, flags, alignment * 4);

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-07-17 11:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-07-17 11:36 [PATCH] Fix 64bit warning for firestream Andi Kleen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.