Date: Wed, 17 May 2017 15:59:45 +0000 (UTC) From: Zbigniew Bodek <zbb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r318411 - head/sys/dev/etherswitch/e6000sw Message-ID: <201705171559.v4HFxjWq001701@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <zbb@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705171559.v4HFxjWq001701>