]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
netdevice: add the case if dev is NULL
authorYajun Deng <yajun.deng@linux.dev>
Thu, 5 Aug 2021 11:54:34 +0000 (19:54 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 13:18:10 +0000 (15:18 +0200)
commit74110442d41b6d40826f7cb9c298d13dac5491ff
treeb3786a9be34c11329a9ed43c6e8b3efa3022e014
parentee0a671f360d3e0cc3b69c88222fa168fa684671
netdevice: add the case if dev is NULL

BugLink: https://bugs.launchpad.net/bugs/1971497
commit b37a466837393af72fe8bcb8f1436410f3f173f3 upstream.

Add the case if dev is NULL in dev_{put, hold}, so the caller doesn't
need to care whether dev is NULL or not.

Signed-off-by: Yajun Deng <yajun.deng@linux.dev>
Signed-off-by: David S. Miller <davem@davemloft.net>
Cc: Pavel Machek <pavel@denx.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
include/linux/netdevice.h