gpiolib: Fix locking on gpio debugfs files
authorGrant Likely <grant.likely@secretlab.ca>
Sat, 9 Feb 2013 09:41:49 +0000 (09:41 +0000)
committerGrant Likely <grant.likely@secretlab.ca>
Mon, 11 Feb 2013 22:21:28 +0000 (22:21 +0000)
The debugfs files really need to hold the gpiolib spinlock before
accessing the list. Otherwise chip addition/removal will cause an oops.

Cc: Alexandre Courbot <acourbot@nvidia.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>

No differences found