Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 322139
b: refs/heads/master
c: 6de7145
h: refs/heads/master
i:
  322137: 881fb58
  322135: 8b8c315
v: v3
  • Loading branch information
Michael S. Tsirkin authored and Nicholas Bellinger committed Aug 20, 2012
1 parent 9113e22 commit 03d69d1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 74f4cf290918f05b6489aa732dfb08aa5606b9d6
refs/heads/master: 6de7145ca3db231a84b7516a6cb25878da6ebb19
4 changes: 4 additions & 0 deletions trunk/drivers/vhost/tcm_vhost.c
Original file line number Diff line number Diff line change
Expand Up @@ -995,11 +995,15 @@ static long vhost_scsi_ioctl(struct file *f, unsigned int ioctl,
case VHOST_SCSI_SET_ENDPOINT:
if (copy_from_user(&backend, argp, sizeof backend))
return -EFAULT;
if (backend.reserved != 0)
return -EOPNOTSUPP;

return vhost_scsi_set_endpoint(vs, &backend);
case VHOST_SCSI_CLEAR_ENDPOINT:
if (copy_from_user(&backend, argp, sizeof backend))
return -EFAULT;
if (backend.reserved != 0)
return -EOPNOTSUPP;

return vhost_scsi_clear_endpoint(vs, &backend);
case VHOST_SCSI_GET_ABI_VERSION:
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/vhost/tcm_vhost.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ struct vhost_scsi_target {
int abi_version;
char vhost_wwpn[TRANSPORT_IQN_LEN];
unsigned short vhost_tpgt;
unsigned short reserved;
};

/* VHOST_SCSI specific defines */
Expand Down

0 comments on commit 03d69d1

Please sign in to comment.