summaryrefslogtreecommitdiff
path: root/drivers/leds/leds-cobalt-raq.c
diff options
context:
space:
mode:
authorAnkit Kumar <ankit@linux.vnet.ibm.com>2017-05-23 08:46:52 +0300
committerKees Cook <keescook@chromium.org>2017-05-31 20:09:32 +0300
commit4a16d1cb245c56e72fd40a28f3cdb394cde4b341 (patch)
tree09e5d0559d3ac2ff4b9072a0b71603ec0cf3affb /drivers/leds/leds-cobalt-raq.c
parent5ed02dbb497422bf225783f46e6eadd237d23d6b (diff)
downloadlinux-4a16d1cb245c56e72fd40a28f3cdb394cde4b341.tar.xz
pstore: Don't warn if data is uncompressed and type is not PSTORE_TYPE_DMESG
commit 9abdcccc3d5f ("pstore: Extract common arguments into structure") moved record decompression to function. decompress_record() gets called without checking type and compressed flag. Warning will be reported if data is uncompressed. Pstore type PSTORE_TYPE_PPC_OPAL, PSTORE_TYPE_PPC_COMMON doesn't contain compressed data and warning get printed part of dmesg. Partial dmesg log: [ 35.848914] pstore: ignored compressed record type 6 [ 35.848927] pstore: ignored compressed record type 8 Above warning should not get printed as it is known that data won't be compressed for above type and it is valid condition. This patch returns if data is not compressed and print warning only if data is compressed and type is not PSTORE_TYPE_DMESG. Reported-by: Anton Blanchard <anton@au1.ibm.com> Signed-off-by: Ankit Kumar <ankit@linux.vnet.ibm.com> Reviewed-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> Signed-off-by: Kees Cook <keescook@chromium.org> Fixes: 9abdcccc3d5f ("pstore: Extract common arguments into structure") Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/leds/leds-cobalt-raq.c')
0 files changed, 0 insertions, 0 deletions