summaryrefslogtreecommitdiffstats
path: root/fs/quota
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2020-03-10 13:22:49 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-03-19 07:41:02 +0100
commitf7d8d7dcd978382dd1dd36e240dcddbfa6697796 (patch)
treece7d283ef9fc4fdb1ef2083acd50b4b2a84723ec /fs/quota
parent31c6ff51fdce7c507e1015bf5cefda8505a13809 (diff)
downloadlinux-f7d8d7dcd978382dd1dd36e240dcddbfa6697796.tar.bz2
nvmem: fix memory leak in error path
We need to free the ida mapping and nvmem struct if the write-protect GPIO lookup fails. Fixes: 2a127da461a9 ("nvmem: add support for the write-protect pin") Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20200310132257.23358-7-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/quota')
0 files changed, 0 insertions, 0 deletions