freebsd-skq/sys
Eric Joyner 6a3f243b04 iflib: remove kobject class reference increment
Commit message from Jake:
In iflib_register, the context is initialized as a kobject using the
device driver's "driver" kobject class. As part of this, the function
mistakenly increments the ref counter.

The ref counter is incremented twice, once in the code directly, and
once again by kobj_class_compile. However, there is no associated
decrement in the detach path. Because of this, the ref counter will
never go back down to zero, and thus the kobject method table will never
be released.

Remove this unnecessary reference count increment.

Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>

Submitted by:	Jacob Keller <jacob.e.keller@intel.com>
Reviewed by:	jhb@, erj@
MFC after:	3 days
Sponsored by:	Intel Corporation
Differential Revision:	https://reviews.freebsd.org/D21125
2019-08-01 17:28:36 +00:00
..
amd64 vmx: use C99 bool, not boolean_t 2019-08-01 02:16:48 +00:00
arm Remove gzip'ed a.out support. 2019-07-30 05:13:16 +00:00
arm64 In pmap_advise(), when we encounter a superpage mapping, we first demote the 2019-07-31 05:38:39 +00:00
bsm Create new EINTEGRITY error with message "Integrity check failed". 2019-01-17 06:35:45 +00:00
cam Reenable UNMAP support on ramdisks by default. 2019-07-27 18:07:46 +00:00
cddl Allow Kernel to link in both legacy libkern/zlib and new sys/contrib/zlib, 2019-08-01 06:35:33 +00:00
compat Make randomized stack gap between strings and pointers to argv/envs. 2019-07-31 20:23:10 +00:00
conf This adds the third step in getting BBR into the tree. BBR and 2019-08-01 14:17:31 +00:00
contrib Allow Kernel to link in both legacy libkern/zlib and new sys/contrib/zlib, 2019-08-01 06:35:33 +00:00
crypto aesni(4): Fix trivial type typo 2019-05-27 00:47:51 +00:00
ddb ddb show proc typo 2019-06-22 05:35:23 +00:00
dev This adds the third step in getting BBR into the tree. BBR and 2019-08-01 14:17:31 +00:00
dts dtso: allwinner: Add an overlay for H3 i2c0 2019-07-20 17:42:46 +00:00
fs Try to decrease the number of bugs in unionfs after the VV_TEXT flag removal. 2019-08-01 14:40:37 +00:00
gdb
geom gnop: style nits 2019-07-31 17:51:06 +00:00
gnu dts: Import files from Linux 5.1 2019-05-08 19:27:30 +00:00
i386 In pmap_advise(), when we encounter a superpage mapping, we first demote the 2019-07-31 05:38:39 +00:00
isa
kern Make umtxq_check_susp() to correctly handle thread exit requests. 2019-08-01 14:34:27 +00:00
kgssapi Make the warning intervals for deprecated crypto algorithms tunable. 2019-06-11 23:00:55 +00:00
libkern Allow Kernel to link in both legacy libkern/zlib and new sys/contrib/zlib, 2019-08-01 06:35:33 +00:00
mips Avoid relying on header pollution from sys/refcount.h. 2019-07-29 20:26:01 +00:00
modules Allow Kernel to link in both legacy libkern/zlib and new sys/contrib/zlib, 2019-08-01 06:35:33 +00:00
net iflib: remove kobject class reference increment 2019-08-01 17:28:36 +00:00
net80211 Enhance the comment ieee80211_add_channel() to avoid a 2019-06-10 14:31:18 +00:00
netgraph Remove 'dir' argument in ng_ipfw_input, since ip_fw_args now has this info. 2019-03-14 22:30:05 +00:00
netinet This adds the third step in getting BBR into the tree. BBR and 2019-08-01 14:17:31 +00:00
netinet6 When calling sctp_initialize_auth_params(), the inp must have at 2019-07-14 12:04:39 +00:00
netipsec netipsec key_register: check for M_NOWAIT alloc failure 2019-06-25 15:43:52 +00:00
netpfil pf: zero (another) output buffer in pfioctl 2019-07-31 16:58:09 +00:00
netsmb Remove unused argument to priv_check_cred. 2018-12-11 19:32:16 +00:00
nfs
nfsclient
nfsserver
nlm
ofed Fix prio vs. nonprio tagged traffic in RDMACM 2019-06-04 06:21:31 +00:00
opencrypto Allow Kernel to link in both legacy libkern/zlib and new sys/contrib/zlib, 2019-08-01 06:35:33 +00:00
powerpc powerpc/powernv: Only clear EEH freeze for some errors 2019-08-01 03:59:25 +00:00
riscv riscv: Fix copyin/copyout 2019-07-29 14:59:14 +00:00
rpc Avoid relying on header pollution from sys/refcount.h. 2019-07-29 20:26:01 +00:00
security Extract eventfilter declarations to sys/_eventfilter.h 2019-05-20 00:38:23 +00:00
sparc64 Don't pass error from syscallenter() to syscallret(). 2019-07-15 21:25:16 +00:00
sys Allow Kernel to link in both legacy libkern/zlib and new sys/contrib/zlib, 2019-08-01 06:35:33 +00:00
teken Attempt to complete fixing programmable function keys for syscons. 2019-02-20 02:14:41 +00:00
tests Regularize the Netflix copyright 2019-02-04 21:28:25 +00:00
tools Add SDIO support. 2019-06-08 16:26:56 +00:00
ufs When updating the user or group disk quotas for the return of inodes or 2019-07-31 22:44:58 +00:00
vm Centralize the logic in vfs_vmio_unwire() and sendfile_free_page(). 2019-07-29 22:01:28 +00:00
x86 PR: 239143 2019-07-14 21:08:54 +00:00
xdr
xen xen: introduce a new way to setup event channel upcall 2019-01-30 11:34:52 +00:00
Makefile