linux/drivers/scsi/libfc
Ming Lu 5d8fc4a9f0 scsi: libfc: free skb when receiving invalid flogi resp
The issue to be fixed in this commit is when libfc found it received a
invalid FLOGI response from FC switch, it would return without freeing the
fc frame, which is just the skb data. This would cause memory leak if FC
switch keeps sending invalid FLOGI responses.

This fix is just to make it execute `fc_frame_free(fp)` before returning
from function `fc_lport_flogi_resp`.

Signed-off-by: Ming Lu <ming.lu@citrix.com>
Reviewed-by: Hannes Reinecke <hare@suse.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2019-01-29 01:19:25 -05:00
..
fc_disc.c scsi: libfc: hold disc_mutex in fc_disc_stop_rports() 2018-07-12 23:01:16 -04:00
fc_elsct.c
fc_exch.c
fc_fcp.c scsi: libfc: remove set but not used variable 'rpriv' 2018-09-11 20:59:11 -04:00
fc_frame.c
fc_libfc.c
fc_libfc.h
fc_lport.c scsi: libfc: free skb when receiving invalid flogi resp 2019-01-29 01:19:25 -05:00
fc_npiv.c
fc_rport.c scsi: libfc: fc_rport: Mark expected switch fall-through 2018-11-28 21:47:30 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00