pinctrl: baytrail: fix some error handling in debugfs
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 27 Apr 2016 08:08:35 +0000 (11:08 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Sat, 30 Apr 2016 11:34:53 +0000 (13:34 +0200)
commit22bbd21b81189942688db5aafe4a72074f38561b
treeb5f603da32f7335c3064e1f133ee45524132cda9
parentb5aa1006e4a93ebb402490b4536a7d8866d967dc
pinctrl: baytrail: fix some error handling in debugfs

We need to unlock before continuing.  Also the continue was accidentally
left out on one error path which would lead to a NULL dereference.

Fixes: 86e3ef812fe3 ('pinctrl: baytrail: Update gpio chip operations')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/intel/pinctrl-baytrail.c