Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 77132
b: refs/heads/master
c: a24484f
h: refs/heads/master
v: v3
  • Loading branch information
FUJITA Tomonori authored and James Bottomley committed Jan 23, 2008
1 parent f23f058 commit e6d6966
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 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: d814c5173c671cf2c88d4e07db01b13312467ecd
refs/heads/master: a24484f281dda11e4fc0041a51907d3564da3d7f
3 changes: 2 additions & 1 deletion trunk/drivers/scsi/sg.c
Original file line number Diff line number Diff line change
Expand Up @@ -1422,7 +1422,6 @@ sg_add(struct class_device *cl_dev, struct class_interface *cl_intf)
goto out;
}

class_set_devdata(cl_dev, sdp);
error = cdev_add(cdev, MKDEV(SCSI_GENERIC_MAJOR, sdp->index), 1);
if (error)
goto cdev_add_err;
Expand Down Expand Up @@ -1451,6 +1450,8 @@ sg_add(struct class_device *cl_dev, struct class_interface *cl_intf)
"Attached scsi generic sg%d type %d\n", sdp->index,
scsidp->type);

class_set_devdata(cl_dev, sdp);

return 0;

cdev_add_err:
Expand Down

0 comments on commit e6d6966

Please sign in to comment.