Re: [patch v2] scsi_dh_alua: uninitialized variable in alua_rtpg()

From: Martin K. Petersen
Date: Fri Apr 15 2016 - 16:27:12 EST


>>>>> "Dan" == Dan Carpenter <dan.carpenter@xxxxxxxxxx> writes:

Dan> It's possible to use "err" without initializing it. If it happens
Dan> to be a 2 which is SCSI_DH_RETRY then that could cause a bug. Bart
Dan> Van Assche pointed out that we should probably re-initialize it for
Dan> every iteration through the retry loop.

Applied to 4.6/scsi-fixes.

--
Martin K. Petersen Oracle Linux Engineering