diff options
author | Ming Lu <ming.lu@citrix.com> | 2019-01-24 13:25:42 +0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2019-01-29 01:19:25 -0500 |
commit | 5d8fc4a9f0eec20b6c07895022a6bea3fb6dfb38 (patch) | |
tree | f425dadb6ae2226ea0bf94d73c4525e74a4b36d7 /drivers/scsi/scsi_debug.c | |
parent | b63195698dea6ea83eeede20e38dbc6ad67076b6 (diff) | |
download | blackbird-op-linux-5d8fc4a9f0eec20b6c07895022a6bea3fb6dfb38.tar.gz blackbird-op-linux-5d8fc4a9f0eec20b6c07895022a6bea3fb6dfb38.zip |
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>
Diffstat (limited to 'drivers/scsi/scsi_debug.c')
0 files changed, 0 insertions, 0 deletions