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
..
2018-02-06 09:59:40 -08:00
2018-02-15 14:50:32 -08:00
2018-02-07 11:22:44 -08:00
2018-03-02 10:44:44 +01:00
2018-02-02 10:01:04 -08:00
2018-02-26 09:28:35 -08:00
2018-03-18 17:48:59 +01:00
2018-03-10 08:48:01 -08:00
2018-03-09 09:33:48 -08:00
2018-02-01 10:31:17 -08:00
2018-03-10 08:38:01 -08:00
2018-03-08 10:39:58 -07:00
2018-03-09 13:31:08 -08:00
2018-02-01 09:40:49 -08:00
2018-03-10 08:35:29 -08:00
2018-02-05 10:07:40 -08:00
2018-02-06 09:59:40 -08:00
2018-03-07 10:50:15 -08:00
2018-02-28 16:11:04 -08:00
2018-01-22 16:45:26 +01:00
2018-02-22 12:05:43 -08:00
2018-02-22 12:13:01 -08:00
2018-03-18 17:48:59 +01:00
2018-03-09 16:54:18 -08:00
2018-02-01 10:31:17 -08:00
2018-02-06 09:59:40 -08:00