On Wed, Sep 18, 2019 at 5:52 PM DENG Qingfang dqfext@gmail.com wrote:
The cause is spi_gpio_setup() did not check if the spi-gpio has chipselect pins before setting their direction and results in derefing an invalid pointer.
The bug is spotted in kernel 4.19.72 on OpenWrt, and does not occur in 4.14.
There is a similar fix upstream 249e2632dcd0509b8f8f296f5aabf4d48dfd6da8.
So since this is fixed upstream I assume you mean that this should be for stable v4.19?
I think the stable people want a special commit message structure, see: https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
Yours, Linus Walleij