]> www.infradead.org Git - users/jedix/linux-maple.git/commit
netdevice: add DEFINE_FREE() for dev_put
authorJohannes Berg <johannes.berg@intel.com>
Thu, 28 Mar 2024 07:27:50 +0000 (08:27 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 3 Apr 2024 08:59:38 +0000 (09:59 +0100)
commitb1f81b9a535b48b2c9ca460720a2bc73fd2001de
treef2a4ad10a7054e8ae7ef6ec4c2c3d2a16623b05e
parent464eb03c4a7cfb32cb3324249193cf6bb5b35152
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>
include/linux/netdevice.h