Przeglądaj źródła

[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>
Boaz Harrosh 15 lat temu
rodzic
commit
eff21490c9
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      drivers/scsi/osd/osd_initiator.c

+ 1 - 0
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;
 		}