[SCSI] libosd: bug in osd_req_decode_sense_full()
authorBoaz Harrosh <bharrosh@panasas.com>
Mon, 16 Nov 2009 18:47:07 +0000 (20:47 +0200)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 4 Dec 2009 18:01:46 +0000 (12:01 -0600)
commit71ecb74b15377a6c0e0e6ea95d4b549580fb4d48
tree0fb410841016fc0b52821641ef32a06fcd443d2f
parent2cdd6410e5a1665823f2a048fc7f8f6a8384be1d
[SCSI] libosd: bug in osd_req_decode_sense_full()

The (never tested) osd_sense_attribute_identification case
has never worked. The loop was never advanced on.
Fix it to work as intended.

On 10/30/2009 04:39 PM, Roel Kluin wrote:
  I found this by code analysis, searching for while
  loops that test a local variable, but do not modify
  the variable.

Reported-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/osd/osd_initiator.c