Bartosz Golaszewski 6cb9215bae gpio: mockup: fix a potential crash when creating debugfs entries
If we failed to create the top debugfs directory, we must not try to
create the child nodes. We currently only check if gpio_mockup_dbg_dir
is not NULL, but it can also contain an errno if debugfs is disabled
in build options. Use IS_ERR_OR_NULL() instead.

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2018-03-27 15:18:20 +02:00
..
2016-03-30 10:38:51 +02:00
2018-03-19 01:50:07 +01:00
2018-03-19 01:50:07 +01:00
2018-03-19 01:50:07 +01:00
2018-03-19 01:50:29 +01:00
2016-12-30 09:18:10 +01:00
2017-10-07 00:01:08 +02:00
2018-03-18 17:48:59 +01:00
2017-12-22 15:24:31 +01:00
2016-09-13 10:35:56 +02:00
2016-12-30 09:18:10 +01:00
2018-01-09 14:51:00 +01:00
2017-08-23 09:21:54 +02:00