summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/qib/qib_file_ops.c
diff options
context:
space:
mode:
authorMike Marciniszyn <mike.marciniszyn@intel.com>2014-03-07 17:32:31 +0400
committerJiri Slaby <jslaby@suse.cz>2014-05-15 11:55:13 +0400
commita67a38bf33f4ad75abda8177ed84ab2dcddab7fe (patch)
treea473e6fe508a57f17ee3911c685e747c1c7605ae /drivers/infiniband/hw/qib/qib_file_ops.c
parent30a61a69050f9c4550a0802f15fc41b452f431b2 (diff)
downloadlinux-a67a38bf33f4ad75abda8177ed84ab2dcddab7fe.tar.xz
IB/qib: Fix debugfs ordering issue with multiple HCAs
commit f8b6c47a44c063062317646683a73371c24c69ee upstream. The debugfs init code was incorrectly called before the idr mechanism is used to get the unit number, so the dd->unit hasn't been initialized. This caused the unit relative directory creation to fail after the first. This patch moves the init for the debugfs stuff until after all of the failures and after the unit number has been determined. A bug in unwind code in qib_alloc_devdata() is also fixed. Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Mike Marciniszyn <mike.marciniszyn@intel.com> Signed-off-by: Roland Dreier <roland@purestorage.com> Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Diffstat (limited to 'drivers/infiniband/hw/qib/qib_file_ops.c')
0 files changed, 0 insertions, 0 deletions