git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1b627d5
)
kfifo: disable __kfifo_must_check_helper()
author
Andrew Morton
<akpm@linux-foundation.org>
Tue, 26 Oct 2010 21:21:19 +0000
(14:21 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 26 Oct 2010 23:52:04 +0000
(16:52 -0700)
This helper is wrong: it coerces signed values into unsigned ones, so code
such as
if (kfifo_alloc(...) < 0) {
error
}
will fail to detect the error.
So let's disable __kfifo_must_check_helper() for 2.6.36.
Cc: Randy Dunlap <randy.dunlap@oracle.com>
Cc: Stefani Seibold <stefani@seibold.net>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/kfifo.h
patch
|
blob
|
history
diff --cc
include/linux/kfifo.h
Simple merge