]> git.karo-electronics.de Git - karo-tx-linux.git/commit
rbd: fix bug in rbd_dev_id_put()
authorAlex Elder <elder@inktank.com>
Thu, 11 Oct 2012 04:19:13 +0000 (21:19 -0700)
committerAlex Elder <elder@inktank.com>
Fri, 26 Oct 2012 22:18:08 +0000 (17:18 -0500)
commitb213e0b1a62637b2a9395a34349b13d73ca2b90a
treee096a1d0b33102ed8e433da468b45e0a9eede1c4
parentb000056a5a8d3f5a4a9fb80184a7ec14f86a43d4
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 <elder@inktank.com>
Reviewed-by: Josh Durgin <josh.durgin@inktank.com>
drivers/block/rbd.c