Skip to contentSkip to conversation

fcoe: Fixup missing initialisation in fcoe_dcb_create()

PATCH Applied Hannes Reinecke 3 participants 3 messages Oct 18, 2016 – Oct 19, 2016

Subsystems (2)
lore
Share & tools
lore

Hannes Reinecke

author maintainer
#0 lore raw

PATCH 1/1 fcoe: Fixup missing initialisation in fcoe_dcb_create()

Found by 0-day robot.

Fixes a99ac6e715bc ("scsi: fcoe: set default TC priority")
---
 drivers/scsi/fcoe/fcoe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/scsi/fcoe/fcoe.c +1 -1
index cf4adaa..59150ca 100644
@@ -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
Signature · 1 line
1.8.5.6
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Hannes Reinecke

Found by 0-day robot.

Fixes a99ac6e715bc ("scsi: fcoe: set default TC priority")

---

Looks good,

Signature · 6 lines
Johannes Thumshirn                                          Storage
[email protected]                                +49 911 74053 689
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)
Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850