login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
October
»
22
Re: [PATCH] return hidden bug
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Matt Mackall <mpm@...>
To: Rik van Riel <riel@...>
Cc: Roel Kluin <12o3l@...>, lkml <linux-kernel@...>
Subject:
Re: [PATCH] return hidden bug
Date: Monday, October 22, 2007 - 2:36 pm
On Sun, Oct 21, 2007 at 09:42:09PM -0400, Rik van Riel wrote:
quoted text
> On Mon, 22 Oct 2007 03:05:05 +0200 > Roel Kluin <12o3l@tiscali.nl> wrote: > > > return hidden bug > > > > Signed-off-by: Roel Kluin <12o3l@tiscali.nl> > > > > diff --git a/arch/alpha/kernel/pci_iommu.c > > b/arch/alpha/kernel/pci_iommu.c index e1c4707..6a69425 100644 > > --- a/arch/alpha/kernel/pci_iommu.c > > +++ b/arch/alpha/kernel/pci_iommu.c > > @@ -365,8 +365,8 @@ pci_unmap_single(struct pci_dev *pdev, dma_addr_t > > dma_addr, size_t size, printk(KERN_ERR "Bogus pci_unmap_single: > > dma_addr %lx " " base %lx size %x\n", dma_addr, arena->dma_base, > > arena->size); > > - return; > > BUG(); > > + return; > > } > > > > npages = calc_npages((dma_addr & ~PAGE_MASK) + size); > > BUG() will terminate the process that runs into it, so you can > just remove the return alltogether. If BUG() is hit, the return > will never be reached.
Looking at the printk, I don't think this particular error ought to forcefully kill things. -- Mathematics is the supreme nostalgia of our time. -
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] return hidden bug
, Roel Kluin
, (Sun Oct 21, 9:05 pm)
Re: [PATCH] return hidden bug
, Rik van Riel
, (Sun Oct 21, 9:42 pm)
Re: [PATCH] return hidden bug
, Matt Mackall
, (Mon Oct 22, 2:36 pm)
Re: [PATCH] return hidden bug
, Ray Lee
, (Mon Oct 22, 12:42 pm)
Re: [PATCH] return hidden bug
, Roel Kluin
, (Mon Oct 22, 1:56 pm)
Re: [PATCH] return hidden bug
, Ray Lee
, (Mon Oct 22, 2:12 pm)
Re: [PATCH] return hidden bug
, Roel Kluin
, (Mon Oct 22, 2:52 pm)
Re: [PATCH] return hidden bug
, Rene Herman
, (Mon Oct 22, 6:26 pm)
Re: [PATCH] return hidden bug
, Ray Lee
, (Mon Oct 22, 7:00 pm)
Re: [PATCH] return hidden bug
, Rene Herman
, (Mon Oct 22, 8:15 pm)
Re: [PATCH] return hidden bug
, Pekka Enberg
, (Mon Oct 22, 5:30 am)
Re: [PATCH] return hidden bug
, Rik van Riel
, (Mon Oct 22, 11:19 am)
Re: [PATCH] return hidden bug
, Pekka Enberg
, (Mon Oct 22, 11:23 am)
Re: [PATCH] return hidden bug
, Herbert Xu
, (Mon Oct 22, 1:02 am)
Re: [PATCH] return hidden bug
, Roel Kluin
, (Sun Oct 21, 9:53 pm)
Re: [PATCH] return hidden bug
, Rik van Riel
, (Sun Oct 21, 11:08 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Andy Whitcroft
clam
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
David Miller
Re: Slow DOWN, please!!!
git
:
linux-netdev
:
Arjan van de Ven
Re: [GIT]: Networking
Lennert Buytenhek
[PATCH 08/39] mv643xx_eth: nuke port status register bit defines
Jarek Poplawski
Re: HTB accuracy for high speed
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
openbsd-misc
:
Colocation donated by:
Who's online
There are currently
1 user
and
699 guests
online.
Online users
ventascelas
Syndicate