linux-uconsole/drivers/scsi/libfc
Hannes Reinecke 93d6f0841e scsi: fcoe: Embed fc_rport_priv in fcoe_rport structure
commit 023358b136 upstream.

Gcc-9 complains for a memset across pointer boundaries, which happens as
the code tries to allocate a flexible array on the stack.  Turns out we
cannot do this without relying on gcc-isms, so with this patch we'll embed
the fc_rport_priv structure into fcoe_rport, can use the normal
'container_of' outcast, and will only have to do a memset over one
structure.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-08-09 17:52:27 +02: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
fc_frame.c
fc_libfc.c
fc_libfc.h
fc_lport.c scsi: libfc: free skb when receiving invalid flogi resp 2019-03-13 14:02:30 -07:00
fc_npiv.c
fc_rport.c scsi: fcoe: Embed fc_rport_priv in fcoe_rport structure 2019-08-09 17:52:27 +02:00
Makefile