RE: [PATCH 2/2] scsi: be2iscsi: set errno on error path

2016-12-04 Thread Jitendra Bhivare
rnel.org; Pan Bian > Subject: [PATCH 2/2] scsi: be2iscsi: set errno on error path > > From: Pan Bian <bianpan2...@163.com> > > Variable ret is reset in the loop, and its value will be 0 during the second and > after repeat of the loop. If pci_alloc_consistent() returns a NULL

RE: [PATCH 2/2] scsi: be2iscsi: set errno on error path

2016-12-04 Thread Jitendra Bhivare
rnel.org; Pan Bian > Subject: [PATCH 2/2] scsi: be2iscsi: set errno on error path > > From: Pan Bian > > Variable ret is reset in the loop, and its value will be 0 during the second and > after repeat of the loop. If pci_alloc_consistent() returns a NULL pointer then, it > w

[PATCH 2/2] scsi: be2iscsi: set errno on error path

2016-12-03 Thread Pan Bian
From: Pan Bian Variable ret is reset in the loop, and its value will be 0 during the second and after repeat of the loop. If pci_alloc_consistent() returns a NULL pointer then, it will leaves with return value 0. 0 means no error, which is contrary to the fact. This patches

[PATCH 2/2] scsi: be2iscsi: set errno on error path

2016-12-03 Thread Pan Bian
From: Pan Bian Variable ret is reset in the loop, and its value will be 0 during the second and after repeat of the loop. If pci_alloc_consistent() returns a NULL pointer then, it will leaves with return value 0. 0 means no error, which is contrary to the fact. This patches fixes the bug,