login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
8
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: FUJITA Tomonori
Subject:
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
Date: Friday, August 8, 2008 - 2:13 pm
On Fri, 8 Aug 2008 09:15:51 -0700 Jesse Barnes <jbarnes@virtuousgeek.org> wrote:
quoted text
> On Friday, August 8, 2008 8:18 am Prarit Bhargava wrote: > > --- a/include/linux/dma-mapping.h > > +++ b/include/linux/dma-mapping.h > > @@ -78,7 +78,7 @@ static inline unsigned int dma_set_max_seg_size(struct > > device > > static inline unsigned long dma_get_seg_boundary(struct device *dev) > > { > > return dev->dma_parms ? > > - dev->dma_parms->segment_boundary_mask : 0xffffffff; > > + dev->dma_parms->segment_boundary_mask : 0xffffffffUL; > > } > > Yeah generally you need to cast values like this when working with real > unsigned long values rather than ints, but this *should* still be safe > (barring a compiler bug). The return type is unsigned long, so even if you > just return 0xffffffff the right thing should still happen...
I told Prarid that the overflow should not happen here again and again... --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH]: PCI: GART iommu alignment fixes [v2]
, Prarit Bhargava
, (Wed Jul 23, 4:19 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Joerg Roedel
, (Wed Jul 23, 3:10 pm)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, FUJITA Tomonori
, (Wed Jul 23, 4:14 pm)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, FUJITA Tomonori
, (Wed Jul 23, 4:23 pm)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Prarit Bhargava
, (Wed Jul 23, 4:24 pm)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Prarit Bhargava
, (Wed Jul 23, 4:47 pm)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Joerg Roedel
, (Thu Jul 24, 12:46 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Prarit Bhargava
, (Thu Jul 24, 3:09 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, FUJITA Tomonori
, (Thu Jul 24, 3:34 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Joerg Roedel
, (Thu Jul 24, 5:37 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Prarit Bhargava
, (Thu Jul 24, 5:49 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, FUJITA Tomonori
, (Thu Jul 24, 6:32 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Prarit Bhargava
, (Thu Jul 24, 7:31 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, FUJITA Tomonori
, (Thu Jul 24, 7:40 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Prarit Bhargava
, (Thu Jul 24, 7:45 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Prarit Bhargava
, (Thu Jul 24, 8:13 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Jesse Barnes
, (Mon Jul 28, 3:23 pm)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Prarit Bhargava
, (Tue Jul 29, 7:24 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Jesse Barnes
, (Tue Jul 29, 10:08 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, FUJITA Tomonori
, (Tue Jul 29, 5:43 pm)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Prarit Bhargava
, (Wed Aug 6, 5:29 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Prarit Bhargava
, (Wed Aug 6, 6:23 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, FUJITA Tomonori
, (Wed Aug 6, 6:35 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Prarit Bhargava
, (Wed Aug 6, 7:32 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Jesse Barnes
, (Thu Aug 7, 10:03 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Prarit Bhargava
, (Thu Aug 7, 10:41 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Prarit Bhargava
, (Thu Aug 7, 10:45 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Muli Ben-Yehuda
, (Fri Aug 8, 12:12 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Prarit Bhargava
, (Fri Aug 8, 8:18 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Jesse Barnes
, (Fri Aug 8, 9:15 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, FUJITA Tomonori
, (Fri Aug 8, 2:13 pm)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Prarit Bhargava
, (Fri Aug 8, 6:40 pm)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, FUJITA Tomonori
, (Fri Aug 8, 8:50 pm)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Ingo Molnar
, (Fri Aug 15, 9:16 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Ingo Molnar
, (Fri Aug 15, 11:00 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Prarit Bhargava
, (Fri Aug 15, 1:39 pm)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Ingo Molnar
, (Fri Aug 15, 2:20 pm)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, FUJITA Tomonori
, (Fri Aug 15, 6:15 pm)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Ingo Molnar
, (Sun Aug 17, 5:56 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, FUJITA Tomonori
, (Sun Aug 17, 8:36 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, Ingo Molnar
, (Sun Aug 17, 8:42 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, FUJITA Tomonori
, (Sun Aug 17, 8:48 am)
Re: [PATCH]: PCI: GART iommu alignment fixes [v2]
, FUJITA Tomonori
, (Sun Aug 17, 8:54 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Kay Sievers
Re: char/tpm: tpm_infineon no longer loaded for HP 2510p laptop
Eric W. Biederman
[PATCH 8/8] sysfs: user namespaces: fix bug with clone(CLONE_NEWUSER) with fairsched
S K
Re: cpufreq doesn't seem to work in Intel Q9300
Bart Van Assche
Re: Is gcc thread-unsafe?
Greg Kroah-Hartman
[PATCH 20/36] Driver core: Call device_pm_add() after bus_add_device() in device_a...
git
:
Junio C Hamano
Re: git-svnimport
Junio C Hamano
Re: [PATCH] git-mv: Keep moved index entries inact
Johannes Schindelin
Re: [PATCH] Fix approxidate("never") to always return 0
A Large Angry SCM
Re: [RFC] origin link for cherry-pick and revert
Gabriel
[PATCH] When a remote is added but not fetched, tell the user.
linux-netdev
:
Daniel Lezcano
getsockopt(TCP_DEFER_ACCEPT) value change
David Miller
Re: 2.6.27.18: bnx2/tg3: BUG: "scheduling while atomic" trying to ifenslave a seco...
Ingo Molnar
Re: [regression] nf_iterate(), BUG: unable to handle kernel NULL pointer dereference
Eric W. Biederman
[PATCH 14/20] net: Simplify pppol2tp pernet operations.
Jeff Kirsher
[net-2.6 PATCH 2/5] e1000e: increase swflag acquisition timeout for ICHx/PCH
git-commits-head
:
Linux Kernel Mailing List
ath9k_htc: Allocate URBs properly
Linux Kernel Mailing List
sm501: add power control callback
Linux Kernel Mailing List
MIPS: Cavium: Remove unused watchdog code.
Linux Kernel Mailing List
V4L/DVB (8976): af9015: Add USB ID for AVerMedia A309
Linux Kernel Mailing List
ARM: 5670/1: bcmring: add default configuration for bcmring arch
openbsd-misc
:
daniele.pilenga
snmpd hangs on 4.1 looking up hrSWRunTable
Jason Dixon
Re: any web management gui for pf ?
Christophe Rioux
Implementation example of snmp
Nick Holland
Re: booting openbsd on eee without cd-rom
Bryan Irvine
Re: OpenBSD 4.7 Released, May 19 2010
Colocation donated by:
Syndicate