projects
/
project
/
netifd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix use-after-free on device free codepath due to recursion issues, and fix dev-...
[project/netifd.git]
/
device.h
diff --git
a/device.h
b/device.h
index
0d9e6f4
..
c0b112d
100644
(file)
--- a/
device.h
+++ b/
device.h
@@
-148,12
+148,7
@@
void device_release(struct device_user *dep);
int device_check_state(struct device *dev);
void device_dump_status(struct blob_buf *b, struct device *dev);
int device_check_state(struct device *dev);
void device_dump_status(struct blob_buf *b, struct device *dev);
-static inline void
-device_free(struct device *dev)
-{
- dev->type->free(dev);
-}
-
+void device_free(struct device *dev);
void device_free_unused(struct device *dev);
struct device *get_vlan_device_chain(const char *ifname, bool create);
void device_free_unused(struct device *dev);
struct device *get_vlan_device_chain(const char *ifname, bool create);