scsi: fcoe: Fixup missing initialisation in fcoe_dcb_create()
authorHannes Reinecke <hare@suse.de>
Tue, 18 Oct 2016 06:39:16 +0000 (08:39 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 8 Nov 2016 22:29:53 +0000 (17:29 -0500)
Found by 0-day robot.

Fixes: a99ac6e715bc ("scsi: fcoe: set default TC priority")
Signed-off-by: Hannes Reinecke <hare@suse.com>
Acked-by: Johannes Thumshirn <jth@kernel.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/fcoe/fcoe.c

index cf4adaafd6682d4e9ac257a1377a183685bfda10..59150cad03532e1e1ee15ad0d8fcdf35229d07c3 100644 (file)
@@ -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