From: Hannes Reinecke Date: Tue, 18 Oct 2016 06:39:16 +0000 (+0200) Subject: scsi: fcoe: Fixup missing initialisation in fcoe_dcb_create() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c5969656715d16f95f54be550c2130520b075b72;p=linux-beck.git scsi: fcoe: Fixup missing initialisation in fcoe_dcb_create() Found by 0-day robot. Fixes: a99ac6e715bc ("scsi: fcoe: set default TC priority") Signed-off-by: Hannes Reinecke Acked-by: Johannes Thumshirn Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index cf4adaafd668..59150cad0353 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c @@ -2171,11 +2171,11 @@ static void fcoe_dcb_create(struct fcoe_interface *fcoe) { int ctlr_prio = TC_PRIO_BESTEFFORT; int fcoe_prio = TC_PRIO_INTERACTIVE; + struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); #ifdef CONFIG_DCB int dcbx; u8 fup, up; struct net_device *netdev = fcoe->realdev; - struct fcoe_ctlr *ctlr = fcoe_to_ctlr(fcoe); struct dcb_app app = { .priority = 0, .protocol = ETH_P_FCOE