projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'for-4.1' of git://git.kernel.org/pub/scm/linux/kernel/git/kishon/linux...
[deliverable/linux.git]
/
drivers
/
target
/
target_core_pscsi.c
diff --git
a/drivers/target/target_core_pscsi.c
b/drivers/target/target_core_pscsi.c
index 1045dcd7bf651b679ee355a19401065d559976b1..f6c954c4635f5dab27ac24ea117dd284561c836a 100644
(file)
--- a/
drivers/target/target_core_pscsi.c
+++ b/
drivers/target/target_core_pscsi.c
@@
-1121,7
+1121,7
@@
static u32 pscsi_get_device_type(struct se_device *dev)
struct pscsi_dev_virt *pdv = PSCSI_DEV(dev);
struct scsi_device *sd = pdv->pdv_sd;
- return
sd->type
;
+ return
(sd) ? sd->type : TYPE_NO_LUN
;
}
static sector_t pscsi_get_blocks(struct se_device *dev)
This page took
0.118034 seconds
and
5
git commands to generate.