diff options
author | Boaz Harrosh <bharrosh@panasas.com> | 2009-11-16 13:47:47 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-12-04 13:01:47 -0500 |
commit | eff21490c91f981126f0ead3c081dde4f425d387 (patch) | |
tree | 4c4da80842cd2382133ec7f08505ecc539d5e315 /drivers/scsi | |
parent | 71ecb74b15377a6c0e0e6ea95d4b549580fb4d48 (diff) |
[SCSI] libosd: Bugfix of error handling in attributes-list decoding
When an error was detected in an attribute list do to
a target bug. We would print an error but spin endlessly
regardless. Fix it.
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi')
-rw-r--r-- | drivers/scsi/osd/osd_initiator.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/osd/osd_initiator.c b/drivers/scsi/osd/osd_initiator.c index 5e90d19fddf8..ba25b1e58a6c 100644 --- a/drivers/scsi/osd/osd_initiator.c +++ b/drivers/scsi/osd/osd_initiator.c | |||
@@ -1167,6 +1167,7 @@ int osd_req_decode_get_attr_list(struct osd_request *or, | |||
1167 | "c=%d r=%d n=%d\n", | 1167 | "c=%d r=%d n=%d\n", |
1168 | cur_bytes, returned_bytes, n); | 1168 | cur_bytes, returned_bytes, n); |
1169 | oa->val_ptr = NULL; | 1169 | oa->val_ptr = NULL; |
1170 | cur_bytes = returned_bytes; /* break the caller loop */ | ||
1170 | break; | 1171 | break; |
1171 | } | 1172 | } |
1172 | 1173 | ||