Commit b1f81b9
netdevice: add DEFINE_FREE() for dev_put
For short netdev holds within a function there are still a lot of
users of dev_put() rather than netdev_put(). Add DEFINE_FREE() to
allow making those safer.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 464eb03 commit b1f81b9
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4097 | 4097 | | |
4098 | 4098 | | |
4099 | 4099 | | |
| 4100 | + | |
| 4101 | + | |
4100 | 4102 | | |
4101 | 4103 | | |
4102 | 4104 | | |
| |||
0 commit comments