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:
1daaa5e
)
blk: fix wrong idr_pre_get() error check in loop.c
author
Silva Paulo
<psdasilva@yahoo.com>
Sat, 14 Jul 2012 22:39:58 +0000
(15:39 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Sat, 14 Jul 2012 22:39:58 +0000
(15:39 -0700)
The idr_pre_get() function never returns a value < 0. It returns 0 (no
memory) or 1 (OK).
Reported-by: Silva Paulo <psdasilva@yahoo.com>
[ Rewrote Silva's patch, but attributing it to Silva anyway - Linus ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
No differences found