Re: [PATCH] scsi: be2iscsi: Reset the address passed in beiscsi_iface_create_default

2021-04-20 Thread Greg KH
On Tue, Apr 06, 2021 at 07:24:45PM -0500, Aditya Pakki wrote: > if_info is a local variable that is passed to beiscsi_if_get_info. In > case of failure, the variable is free'd but not reset to NULL. The patch > avoids security issue by passing NULL to if_info. That is just not true at all. Stop

[PATCH] scsi: be2iscsi: Reset the address passed in beiscsi_iface_create_default

2021-04-06 Thread Aditya Pakki
if_info is a local variable that is passed to beiscsi_if_get_info. In case of failure, the variable is free'd but not reset to NULL. The patch avoids security issue by passing NULL to if_info. Signed-off-by: Aditya Pakki --- drivers/scsi/be2iscsi/be_iscsi.c | 2 ++ 1 file changed, 2