From: Boaz Harrosh Date: Mon, 16 Nov 2009 18:47:47 +0000 (+0200) Subject: [SCSI] libosd: Bugfix of error handling in attributes-list decoding X-Git-Tag: firefly_0821_release~9833^2~3924^2~41 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=eff21490c91f981126f0ead3c081dde4f425d387;p=firefly-linux-kernel-4.4.55.git [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 Signed-off-by: James Bottomley --- 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, "c=%d r=%d n=%d\n", cur_bytes, returned_bytes, n); oa->val_ptr = NULL; + cur_bytes = returned_bytes; /* break the caller loop */ break; }