Re: [PATCH] scsi: fcoe: fix null-ptr-deref Read in fc_release_transport

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 9/4/19 10:51 AM,  zhengbin (A)  wrote:
> ping
> 
> On 2019/8/20 13:43, zhengbin wrote:
>> In fcoe_if_init, if fc_attach_transport(&fcoe_vport_fc_functions)
>> fails, need to free the previously memory and return fail,
>> otherwise will trigger null-ptr-deref Read in fc_release_transport.
>>
>> fcoe_exit
>>   fcoe_if_exit
>>     fc_release_transport(fcoe_vport_scsi_transport)
>>
>> Reported-by: Hulk Robot <hulkci@xxxxxxxxxx>
>> Signed-off-by: zhengbin <zhengbin13@xxxxxxxxxx>
>> ---
>>  drivers/scsi/fcoe/fcoe.c | 16 +++++++++++-----
>>  1 file changed, 11 insertions(+), 5 deletions(-)
>>
[ .. ]
>>
> 
> 
Reviewed-by: Hannes Reinecke <hare@xxxxxxxx>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		      Teamlead Storage & Networking
hare@xxxxxxx			                  +49 911 74053 688
SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 247165 (AG München), GF: Felix Imendörffer



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux