In the Linux kernel, the following vulnerability has been resolved:
i2c: mux: reg: check return value after calling platformgetresource()
It will cause null-ptr-deref in resourcesize(), if platformgetresource() returns NULL, move calling resourcesize() after devmioremapresource() that will check 'res' to avoid null-ptr-deref. And use devmplatformgetandioremap_resource() to simplify code.