Skip to content
Commit 68d740d7 authored by Silva Paulo's avatar Silva Paulo Committed by Linus Torvalds
Browse files

blk: fix wrong idr_pre_get() error check in loop.c



The idr_pre_get() function never returns a value < 0.  It returns 0 (no
memory) or 1 (OK).

Reported-by: default avatarSilva Paulo <psdasilva@yahoo.com>
[ Rewrote Silva's patch, but attributing it to Silva anyway  - Linus ]
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 1daaa5e4
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment