On Tue, Sep 15, 2020 at 2:02 PM Anders Roxell anders.roxell@linaro.org wrote:
On Tue, 8 Sep 2020 at 18:40, Bartosz Golaszewski brgl@bgdev.pl wrote:
From: Bartosz Golaszewski bgolaszewski@baylibre.com
I initially sent this as part of the gpio-mockup overhaul but since these patches are indepentent and the work on gpio-mockup may become more complicated - I'm sending these separately.
The only change is adding additional property helpers to count strings in array.
Bartosz Golaszewski (3): device: property: add helpers to count items in string arrays gpiolib: generalize devprop_gpiochip_set_names() for device properties gpiolib: unexport devprop_gpiochip_set_names()
I do an arm64 allmodconfig build fron linux-next (tag: next-20200915) and run that in qemu. When I run I see the following output (see full log [1]): "BUG: KASAN: null-ptr-deref in device_property_read_string_array".
FYI: this fails because someone passes a NULL struct device * to dev_fwnode() - this is probably caused by some ordering issues in this patch. I'm working on it.
Bartosz