Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 268828
b: refs/heads/master
c: 41098f8
h: refs/heads/master
v: v3
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Oct 17, 2011
1 parent 709f92f commit 100a919
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 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: 1f46902371c50f72ef422e19119b8e3c0b0b3ef6
refs/heads/master: 41098f8f1473cf853125d2fde2ce936879ef1adc
19 changes: 10 additions & 9 deletions trunk/drivers/staging/hv/storvsc_drv.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,8 +522,9 @@ static void storvsc_on_io_completion(struct hv_device *device,
if (vstor_packet->vm_srb.srb_status & 0x80) {
/* autosense data available */
dev_warn(&device->device,
"storvsc pkt %p autosense data valid - len %d\n",
request, vstor_packet->vm_srb.sense_info_length);
"stor pkt %p autosense data valid - len %d\n",
request,
vstor_packet->vm_srb.sense_info_length);

memcpy(request->sense_buffer,
vstor_packet->vm_srb.sense_data,
Expand Down Expand Up @@ -1128,13 +1129,13 @@ static bool storvsc_check_scsi_cmd(struct scsi_cmnd *scmnd)
u8 scsi_op = scmnd->cmnd[0];

switch (scsi_op) {
/* smartd sends this command, which will offline the device */
case SET_WINDOW:
scmnd->result = DID_ERROR << 16;
allowed = false;
break;
default:
break;
/* smartd sends this command, which will offline the device */
case SET_WINDOW:
scmnd->result = DID_ERROR << 16;
allowed = false;
break;
default:
break;
}
return allowed;
}
Expand Down

0 comments on commit 100a919

Please sign in to comment.