IB/hfi1: fix a locking bug
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 16 Sep 2015 06:22:51 +0000 (09:22 +0300)
committerDoug Ledford <dledford@redhat.com>
Fri, 18 Sep 2015 15:28:47 +0000 (11:28 -0400)
commit951842b0540d2ed49ae29ba968adc496baf46556
tree62a4d17e2063cf9a221098072a489413aaf95050
parent50b19729ced72cfa8bb1c44fed9203f395f13991
IB/hfi1: fix a locking bug

mutex_trylock() returns zero on failure, not EBUSY.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/chip.c