Re: [PATCH v2] lpfc: Fix possible NULL pointer dereference

2016-12-09 Thread Johannes Thumshirn
On Thu, Dec 08, 2016 at 11:01:30AM -0800, James Bottomley wrote: > On Tue, 2016-08-02 at 01:17 -0400, Martin K. Petersen wrote: > > > > > > > "Johannes" == Johannes Thumshirn > > > > > > > writes: > > > > Johannes> Check for the existence of piocb->vport before accessing > > it. > > > > Applied

Re: [PATCH v2] lpfc: Fix possible NULL pointer dereference

2016-12-08 Thread James Bottomley
On Tue, 2016-08-02 at 01:17 -0400, Martin K. Petersen wrote: > > > > > > "Johannes" == Johannes Thumshirn > > > > > > writes: > > Johannes> Check for the existence of piocb->vport before accessing > it. > > Applied to 4.8/scsi-queue. OK, now that this has caused problems, could learn the lesson

Re: [PATCH v2] lpfc: Fix possible NULL pointer dereference

2016-08-01 Thread Martin K. Petersen
> "Johannes" == Johannes Thumshirn writes: Johannes> Check for the existence of piocb->vport before accessing it. Applied to 4.8/scsi-queue. -- Martin K. Petersen Oracle Linux Engineering -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message

Re: [PATCH v2] lpfc: Fix possible NULL pointer dereference

2016-08-01 Thread Tyrel Datwyler
On 07/29/2016 06:30 AM, Johannes Thumshirn wrote: > Check for the existence of piocb->vport before accessing it. > > Signed-off-by: Johannes Thumshirn Reviewed-by: Tyrel Datwyler -- To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to majord...@vger.

[PATCH v2] lpfc: Fix possible NULL pointer dereference

2016-07-29 Thread Johannes Thumshirn
Check for the existence of piocb->vport before accessing it. Signed-off-by: Johannes Thumshirn --- Changes to v1: * Fix spelling of piocb (Tyrel) * re-introduce the BU() assertion if piocb->vport is NULL (Tyrel) drivers/scsi/lpfc/lpfc_sli.c | 15 ++- 1 file changed, 6 insertions(+)