Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267948
b: refs/heads/master
c: d225d36
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Aug 25, 2011
1 parent 7459b08 commit 025bfc5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 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: 5289d3d160e8d5c63974502696ab5def71891f18
refs/heads/master: d225d36b13927defee0f5d51ade9987bb617d465
12 changes: 6 additions & 6 deletions trunk/drivers/staging/hv/storvsc.c
Original file line number Diff line number Diff line change
Expand Up @@ -392,10 +392,8 @@ int storvsc_dev_add(struct hv_device *device,

device_info = (struct storvsc_device_info *)additional_info;
stor_device = alloc_stor_device(device);
if (!stor_device) {
ret = -1;
goto cleanup;
}
if (!stor_device)
return -ENOMEM;

/* Save the channel properties to our storvsc channel */

Expand All @@ -409,11 +407,13 @@ int storvsc_dev_add(struct hv_device *device,
stor_device->port_number = device_info->port_number;
/* Send it back up */
ret = storvsc_connect_to_vsp(device, device_info->ring_buffer_size);

if (ret) {
free_stor_device(stor_device);
return ret;
}
device_info->path_id = stor_device->path_id;
device_info->target_id = stor_device->target_id;

cleanup:
return ret;
}

Expand Down

0 comments on commit 025bfc5

Please sign in to comment.