netdevsim: correctly check return value of debugfs_create_dir
authorPrashant Bhole <bhole_prashant_q7@lab.ntt.co.jp>
Wed, 20 Dec 2017 03:18:57 +0000 (12:18 +0900)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Dec 2017 18:58:48 +0000 (13:58 -0500)
commit9ee1942cb3a8e1f9d413eaa34221d1a70ee13146
tree4f4e929241c43b9e4b2b57edba4f0543c125b0c8
parentafb4c97d90e62f33b9f389aa0023f8478bb89db2
netdevsim: correctly check return value of debugfs_create_dir

- Checking return value with IS_ERROR_OR_NULL
- Added error handling where it was not handled

Signed-off-by: Prashant Bhole <bhole_prashant_q7@lab.ntt.co.jp>
Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/netdevsim/bpf.c
drivers/net/netdevsim/netdev.c