From: Andrew Vasquez Date: Fri, 8 Feb 2013 06:57:58 +0000 (-0500) Subject: [SCSI] qla2xxx: Correct list-iteration bug in Report-ID Acquisition codes. X-Git-Tag: v3.9-rc1~21^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ac8d4ca5d8d3bb98072be2961dd2e937e05bb11;p=pandora-kernel.git [SCSI] qla2xxx: Correct list-iteration bug in Report-ID Acquisition codes. Code in qla24xx_report_id_acquisition() incorrectly assumed that upon completion of list iteration (with no match), the 'pos' (vp) variable passed to list_for_each_entry() would be set to NULL. In this context, if the firmware were to return an unrecognized vp_idx, the follow-on assignments to vp-members could result in corruption of the structure. Signed-off-by: Andrew Vasquez Signed-off-by: Saurav Kashyap Signed-off-by: James Bottomley --- Reading git-diff-tree failed