Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 359363
b: refs/heads/master
c: 70a9755
h: refs/heads/master
i:
  359361: eadaedc
  359359: 5a16415
v: v3
  • Loading branch information
Tejun Heo authored and Linus Torvalds committed Feb 28, 2013
1 parent cb9fa54 commit b0075d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d0ffce779d667ec0684309797c187846cedab6d4
refs/heads/master: 70a9755d5fe71d9ecf3010c5c345449378fb0898
15 changes: 4 additions & 11 deletions trunk/drivers/scsi/bfa/bfad_im.c
Original file line number Diff line number Diff line change
Expand Up @@ -523,20 +523,13 @@ bfad_im_scsi_host_alloc(struct bfad_s *bfad, struct bfad_im_port_s *im_port,
int error = 1;

mutex_lock(&bfad_mutex);
if (!idr_pre_get(&bfad_im_port_index, GFP_KERNEL)) {
error = idr_alloc(&bfad_im_port_index, im_port, 0, 0, GFP_KERNEL);
if (error < 0) {
mutex_unlock(&bfad_mutex);
printk(KERN_WARNING "idr_pre_get failure\n");
printk(KERN_WARNING "idr_alloc failure\n");
goto out;
}

error = idr_get_new(&bfad_im_port_index, im_port,
&im_port->idr_id);
if (error) {
mutex_unlock(&bfad_mutex);
printk(KERN_WARNING "idr_get_new failure\n");
goto out;
}

im_port->idr_id = error;
mutex_unlock(&bfad_mutex);

im_port->shost = bfad_scsi_host_alloc(im_port, bfad);
Expand Down

0 comments on commit b0075d1

Please sign in to comment.