svn commit: r318411 - head/sys/dev/etherswitch/e6000sw
Zbigniew Bodek
zbb at FreeBSD.org
Wed May 17 15:59:46 UTC 2017
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 at 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);
More information about the svn-src-head
mailing list