Re: [patch] libsas: dereferencing variable before check

From: Tejun Heo
Date: Thu May 13 2010 - 06:50:35 EST




"Dan Carpenter" <error27@xxxxxxxxx> wrote:

>The "qc->scsicmd" could be null so I moved the dereference inside the
>check. This was introduced by 70b25f890: "[SCSI] fix locking around
>blk_abort_request()"
>
>Signed-off-by: Dan Carpenter <error27@xxxxxxxxx>

Ooh.. right.

Asked-by: Tejun Heo <tj@xxxxxxxxxx>

Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/