On Sat, Oct 29, 2022 at 05:38:25PM +0800, Yang Yingliang wrote: > It will cause null-ptr-deref in resource_size(), if platform_get_resource() > returns NULL, move calling resource_size() after devm_ioremap_resource() that > will check 'res' to avoid null-ptr-deref. > And use devm_platform_get_and_ioremap_resource() to simplify code. > > Fixes: b3fdd32799d8 ("i2c: mux: Add register-based mux i2c-mux-reg") > Signed-off-by: Yang Yingliang <yangyingliang@xxxxxxxxxx> Applied to for-next, thanks! Peter, as other people are sending similar patches, I applied this one now right away. Hope you don't mind.
Attachment:
signature.asc
Description: PGP signature