diff options
Diffstat (limited to 'drivers/target')
-rw-r--r-- | drivers/target/target_core_pscsi.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/target/target_core_pscsi.c b/drivers/target/target_core_pscsi.c index 37575a1f038b..e005f9f4e4a6 100644 --- a/drivers/target/target_core_pscsi.c +++ b/drivers/target/target_core_pscsi.c | |||
@@ -952,7 +952,6 @@ fail: | |||
952 | while (*hbio) { | 952 | while (*hbio) { |
953 | bio = *hbio; | 953 | bio = *hbio; |
954 | *hbio = (*hbio)->bi_next; | 954 | *hbio = (*hbio)->bi_next; |
955 | bio->bi_next = NULL; | ||
956 | bio_endio(bio, 0); /* XXX: should be error */ | 955 | bio_endio(bio, 0); /* XXX: should be error */ |
957 | } | 956 | } |
958 | return TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE; | 957 | return TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE; |
@@ -1092,7 +1091,6 @@ fail_free_bio: | |||
1092 | while (hbio) { | 1091 | while (hbio) { |
1093 | struct bio *bio = hbio; | 1092 | struct bio *bio = hbio; |
1094 | hbio = hbio->bi_next; | 1093 | hbio = hbio->bi_next; |
1095 | bio->bi_next = NULL; | ||
1096 | bio_endio(bio, 0); /* XXX: should be error */ | 1094 | bio_endio(bio, 0); /* XXX: should be error */ |
1097 | } | 1095 | } |
1098 | ret = TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE; | 1096 | ret = TCM_LOGICAL_UNIT_COMMUNICATION_FAILURE; |