diff options
author | Anton Vorontsov <anton.vorontsov@linaro.org> | 2012-06-19 04:15:51 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2012-06-21 01:15:22 +0200 |
commit | 90b58d96907e0a45555429c0d3a79c85cea4b9fc (patch) | |
tree | ad2a80bf0c8648493c62822eb140b38db7d1c238 /arch/mn10300/unit-asb2305/include | |
parent | pstore/ram: Probe as early as possible (diff) | |
download | linux-90b58d96907e0a45555429c0d3a79c85cea4b9fc.tar.xz linux-90b58d96907e0a45555429c0d3a79c85cea4b9fc.zip |
pstore/ram: Fix error handling during przs allocation
persistent_ram_new() returns ERR_PTR() value on errors, so during
freeing of the przs we should check for both NULL and IS_ERR() entries,
otherwise bad things will happen.
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Acked-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions