]> git.itanic.dy.fi Git - linux-stable/commit
cacheinfo: Keep the old value if of_property_read_u32 fails
authorHuacai Chen <chenhc@lemote.com>
Wed, 19 Dec 2018 08:16:03 +0000 (16:16 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 12 Feb 2019 19:02:38 +0000 (20:02 +0100)
commit6f38cb51121e1a5c300ea1c33ccaba38b61114ef
tree1ee17a5f27c51d18cce82f771e702d45a80656f0
parent05161b41e86efa755816e58d5e9461db4b71c5bf
cacheinfo: Keep the old value if of_property_read_u32 fails

commit 3a34c986324c07dde32903f7bb262e6138e77c2a upstream.

Commit 448a5a552f336bd7b847b1951 ("drivers: base: cacheinfo: use OF
property_read_u32 instead of get_property,read_number") makes cache
size and number_of_sets be 0 if DT doesn't provide there values. I
think this is unreasonable so make them keep the old values, which is
the same as old kernels.

Fixes: 448a5a552f33 ("drivers: base: cacheinfo: use OF property_read_u32 instead of get_property,read_number")
Cc: stable@vger.kernel.org
Signed-off-by: Huacai Chen <chenhc@lemote.com>
Reviewed-by: Sudeep Holla <sudeep.holla@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/cacheinfo.c