Add the missing unlock before return from function bfad_iocmd_cfg_trunk()
in the error handling case.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Vijaya Mohan Guvva <vmohan@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
 
        spin_lock_irqsave(&bfad->bfad_lock, flags);
 
-       if (bfa_fcport_is_dport(&bfad->bfa))
+       if (bfa_fcport_is_dport(&bfad->bfa)) {
+               spin_unlock_irqrestore(&bfad->bfad_lock, flags);
                return BFA_STATUS_DPORT_ERR;
+       }
 
        if ((fcport->cfg.topology == BFA_PORT_TOPOLOGY_LOOP) ||
                (fcport->topology == BFA_PORT_TOPOLOGY_LOOP))