In read_handle(), of_get_address() may return NULL if getting address and size of the node failed. When of_read_number() uses prop to handle conversions between different byte orders, it could lead to a null pointer dereference. Add NULL check to fix potential issue.
Found by static analysis.
Cc: stable@vger.kernel.org Fixes: 14baf4d9c739 ("cxl: Add guest-specific code") Signed-off-by: Ma Ke make24@iscas.ac.cn
How will interests evolve for caring more according to known research and development processes? https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Docu... https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Docu...
Changes in v4:
- modified vulnerability description according to suggestions, making the
process of static analysis of vulnerabilities clearer. No active research on developer behavior.
…
Does such information indicate any communication difficulties?
Regards, Markus