Re:[PATCH] Check sk before sendpage

2019-07-12 Thread yang.bin18
> On Wed, 2019-07-10 at 17:47 +, Lee Duncan wrote: > > On 7/10/19 12:30 AM, Yang Bin wrote: > > > > > From: " Yang Bin " > > > > > > Before xmit,iscsi may disconnect just now. > > > So must check connection sock NULL or not,or kernel will crash for > > > accessing NULL pointer. > > > > > > S

Re: [PATCH] Check sk before sendpage

2019-07-10 Thread James Bottomley
On Wed, 2019-07-10 at 17:47 +, Lee Duncan wrote: > On 7/10/19 12:30 AM, Yang Bin wrote: > > > From: " Yang Bin " > > > > Before xmit,iscsi may disconnect just now. > > So must check connection sock NULL or not,or kernel will crash for > > accessing NULL pointer. > > > > Signed-off-by: Yang B

Re: [PATCH] Check sk before sendpage

2019-07-10 Thread Lee Duncan
On 7/10/19 12:30 AM, Yang Bin wrote: > From: " Yang Bin " > > Before xmit,iscsi may disconnect just now. > So must check connection sock NULL or not,or kernel will crash for > accessing NULL pointer. > > Signed-off-by: Yang Bin > --- > drivers/scsi/iscsi_tcp.c | 3 +++ > 1 file changed, 3 insert

[PATCH] Check sk before sendpage

2019-07-10 Thread Yang Bin
From: " Yang Bin " Before xmit,iscsi may disconnect just now. So must check connection sock NULL or not,or kernel will crash for accessing NULL pointer. Signed-off-by: Yang Bin --- drivers/scsi/iscsi_tcp.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/scsi/iscsi_tcp.c b/drivers