Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 242673
b: refs/heads/master
c: d1e12de
h: refs/heads/master
i:
  242671: 447b23a
v: v3
  • Loading branch information
Krishnasamy, Somasundaram authored and James Bottomley committed Mar 23, 2011
1 parent 7c8af92 commit 5ddefbf
Show file tree
Hide file tree
Showing 2 changed files with 2 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: 463b8977ecebf8cf590c33191d43ea0b059381c6
refs/heads/master: d1e12de804f9d8ad114786ca7c2ce593cba79891
2 changes: 1 addition & 1 deletion trunk/include/scsi/scsi_device.h
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ static inline int scsi_device_qas(struct scsi_device *sdev)
}
static inline int scsi_device_enclosure(struct scsi_device *sdev)
{
return sdev->inquiry[6] & (1<<6);
return sdev->inquiry ? (sdev->inquiry[6] & (1<<6)) : 1;
}

static inline int scsi_device_protection(struct scsi_device *sdev)
Expand Down

0 comments on commit 5ddefbf

Please sign in to comment.