10 struct net_device dev
;
11 struct net_device
*dev2
= &dev
;
12 struct net_device
**dev3
= &dev2
;
13 struct net_device
*deva
[10];
14 struct net_device
**devb
[10];
15 struct net_device
***devc
= devb
;
24 * check-name: free_netdev() vs kfree()
25 * check-command: smatch -p=kernel sm_netdevice.c
28 sm_netdevice.c:17 func() error: use free_netdev() here instead of kfree(dev2)
29 sm_netdevice.c:19 func() error: use free_netdev() here instead of kfree(deva[0])