login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2007
»
August
»
29
Re: [PATCH] avoid negative (and full-width) shifts in radix-tree.c, take 3
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Christoph Lameter <clameter@...>
To: Peter Lund <firefly@...>
Cc: Christoph Hellwig <hch@...>, <trivial@...>, <linux-kernel@...>, Momchil Velikov <velco@...>, Maciej W. Rozycki <macro@...>
Subject:
Re: [PATCH] avoid negative (and full-width) shifts in radix-tree.c, take 3
Date: Wednesday, August 29, 2007 - 1:49 pm
On Wed, 29 Aug 2007, Peter Lund wrote:
quoted text
> > - if (tmp >= RADIX_TREE_INDEX_BITS) > - index = ~0UL; > - return index; > + if (shift < 0) > + return ~0UL; > + if (shift >= 8 * sizeof(unsigned long))
8* sizeof(unsigned long) is the constant BITS_PER_LONG. -
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] avoid negative (and full-width) shifts in radix-tree...
, Peter Lund
, (Wed Aug 29, 11:44 am)
Re: [PATCH] avoid negative (and full-width) shifts in radix-...
, Christoph Lameter
, (Wed Aug 29, 1:49 pm)
Re: [PATCH] avoid negative (and full-width) shifts in radix-...
, Björn
, (Wed Aug 29, 8:46 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Andrew Morton
2.6.23-rc3-mm1
Tarkan Erimer
Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3
Yinghai Lu
Re: [PATCH RFC] x86: check for and defend against BIOS memory corruption
Frederik Deweerdt
[-mm patch] remove tcp header from tcp_v4_check (take #2)
openbsd-misc
:
linux-netdev
:
David Miller
[GIT]: Networking
Jarek Poplawski
Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side)
Herbert Xu
Re: [PATCH 2/3][NET_BATCH] net core use batching
git
:
Colocation donated by:
Who's online
There are currently
2 users
and
494 guests
online.
Online users
danahouse
savemarriage
Syndicate