Author: zbb Date: Wed May 17 15:59:45 2017 New Revision: 318411 URL: https://svnweb.freebsd.org/changeset/base/318411
Log: Add missing unlock in e6000sw driver This patch adds missing unlock on attach failure. Submitted by: Zbigniew Bodek <z...@semihalf.com> Obtained from: Semihalf Sponsored by: Stormshield Reviewed by: loos Differential revision: https://reviews.freebsd.org/D10712 Modified: head/sys/dev/etherswitch/e6000sw/e6000sw.c Modified: head/sys/dev/etherswitch/e6000sw/e6000sw.c ============================================================================== --- head/sys/dev/etherswitch/e6000sw/e6000sw.c Wed May 17 15:58:39 2017 (r318410) +++ head/sys/dev/etherswitch/e6000sw/e6000sw.c Wed May 17 15:59:45 2017 (r318411) @@ -425,6 +425,7 @@ e6000sw_attach(device_t dev) return (0); out_fail: + E6000SW_UNLOCK(sc); e6000sw_detach(dev); return (err); _______________________________________________ svn-src-all@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-all To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"