IB/ucm: Fix bitmap wrap when devnum > IB_UCM_MAX_DEVICES
authorCarol L Soto <clsoto@linux.vnet.ibm.com>
Thu, 11 Jun 2015 16:06:41 +0000 (11:06 -0500)
committerDoug Ledford <dledford@redhat.com>
Tue, 14 Jul 2015 17:20:12 +0000 (13:20 -0400)
commit59d40dd92ca00df317ad44fa44c27fe38c58e477
tree52f8e9c4827f4a90df7691f6a941dddca5d2add8
parent8b7cce0dae956b329d09099f8739821936cf7c0f
IB/ucm: Fix bitmap wrap when devnum > IB_UCM_MAX_DEVICES

ib_ucm_release_dev clears the wrong bit if devnum is greater
than IB_UCM_MAX_DEVICES.

Signed-off-by: Carol L Soto <clsoto@linux.vnet.ibm.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/ucm.c