From: Silva Paulo Date: Sat, 14 Jul 2012 22:39:58 +0000 (-0700) Subject: blk: fix wrong idr_pre_get() error check in loop.c X-Git-Tag: v3.5-rc7~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=68d740d79c4977a1a2197c6e68c618c8320c8ace;p=pandora-kernel.git 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: Silva Paulo [ Rewrote Silva's patch, but attributing it to Silva anyway - Linus ] Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed