gpio: mockup: add missing single_release()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 4 Sep 2019 14:18:34 +0000 (14:18 +0000)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 9 Sep 2019 07:55:27 +0000 (09:55 +0200)
commit59929d3a2eb6c4abafc5b61a20c98aa8728ec378
tree482d6d76e7a0e006fc734db4e006b82f3f2e5eec
parentf74c2bb98776e2de508f4d607cd519873065118e
gpio: mockup: add missing single_release()

When using single_open() for opening, single_release() should be
used instead of seq_release(), otherwise there is a memory leak.

Fixes: 2a9e27408e12 ("gpio: mockup: rework debugfs interface")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpio-mockup.c