]> git.baikalelectronics.ru Git - kernel.git/commit
nbd: Fix debugfs error handling
authorMarkus Pargmann <mpa@pengutronix.de>
Sat, 24 Oct 2015 19:15:34 +0000 (21:15 +0200)
committerMarkus Pargmann <mpa@pengutronix.de>
Wed, 3 Feb 2016 10:02:56 +0000 (11:02 +0100)
commit7929e3317193b3865167fd9117a3b6711fd5f901
tree145cf78515bd373bc9ccbd56772590890ef006cf
parentd7e15052ecc9ac4f938d1d7432c1d120a2711a7e
nbd: Fix debugfs error handling

Static checker complains about the implemented error handling. It is
indeed wrong. We don't care about the return values of created debugfs
files.

We only have to check the return values of created dirs for NULL
pointer. If we use a null pointer as parent directory for files, this
may lead to debugfs files in wrong places.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
drivers/block/nbd.c