]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[SCSI] fcoe, libfc: fix double fcoe_softc memory alloc
authorVasu Dev <vasu.dev@intel.com>
Tue, 17 Mar 2009 18:42:29 +0000 (11:42 -0700)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Fri, 3 Apr 2009 14:23:07 +0000 (09:23 -0500)
commita0a25da2a495a889664dc946942b8666665cd1e1
treef3ac1dd6adb76490afa828298e71992ba5045d8f
parentfdd78027fd472351783fb6110a72d991c1a07402
[SCSI] fcoe, libfc: fix double fcoe_softc memory alloc

The foce_softc mem was reserved by libfc_host_alloc as well as
by fcoe_host_alloc.

Removes one liner fcoe_host_alloc completely, instead directly calls
libfc_host_alloc to alloc scsi_host with libfc for just one fcoe_softc
as fcoe private data.

Moves libfc_host_alloc to libfc.h since it is a libfc API, placed
lport_priv API adjacent to libfc_host_alloc since this is related
to scsi_host priv data.

Signed-off-by: Vasu Dev <vasu.dev@intel.com>
Signed-off-by: Robert Love <robert.w.love@intel.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/fcoe/fcoe.c
include/scsi/libfc.h