]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd8cf6ab9ce789c814f997e62bfb24a66e8c16b7f
tree482d6d76e7a0e006fc734db4e006b82f3f2e5eec
parent1aa5eb1025b20f8393f52a7affa486896a6ca186
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: 78bb0654288a ("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