From: Alex Elder Date: Thu, 11 Oct 2012 04:19:13 +0000 (-0700) Subject: rbd: fix bug in rbd_dev_id_put() X-Git-Tag: v3.8-rc1~21^2~58 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b213e0b1a62637b2a9395a34349b13d73ca2b90a;p=pandora-kernel.git rbd: fix bug in rbd_dev_id_put() In rbd_dev_id_put(), there's a loop that's intended to determine the maximum device id in use. But it isn't doing that at all, the effect of how it's written is to simply use the just-put id number, which ignores whole purpose of this function. Fix the bug. Signed-off-by: Alex Elder Reviewed-by: Josh Durgin --- Reading git-diff-tree failed