Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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: 2a127da ("nvmem: add support for the write-protect pin") Signed-off-by: Bartosz Golaszewski <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information