mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix missing epochification of the LinuxKPI after r353292.
Sponsored by: Mellanox Technologies
This commit is contained in:
parent
06656d75b1
commit
427c402de2
1 changed files with 4 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
|||
* Copyright (c) 2010 Isilon Systems, Inc.
|
||||
* Copyright (c) 2010 iX Systems, Inc.
|
||||
* Copyright (c) 2010 Panasas, Inc.
|
||||
* Copyright (c) 2013-2017 Mellanox Technologies, Ltd.
|
||||
* Copyright (c) 2013-2019 Mellanox Technologies, Ltd.
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
|
|
@ -60,11 +60,14 @@
|
|||
static inline struct ifnet *
|
||||
dev_get_by_index(struct vnet *vnet, int if_index)
|
||||
{
|
||||
struct epoch_tracker et;
|
||||
struct ifnet *retval;
|
||||
|
||||
NET_EPOCH_ENTER(et);
|
||||
CURVNET_SET(vnet);
|
||||
retval = ifnet_byindex_ref(if_index);
|
||||
CURVNET_RESTORE();
|
||||
NET_EPOCH_EXIT(et);
|
||||
|
||||
return (retval);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue