Re: [PATCH v3] cxl: Fix possible null pointer dereference in read_handle()

2024-07-14 Thread Greg KH
On Sun, Jul 14, 2024 at 08:14:04PM +0800, Ma Ke wrote: > In read_handle(), of_get_address() may return NULL which is later > dereferenced. Fix this by adding NULL check. > > Based on our customized static analysis tool, extract vulnerability > features[1], then match similar vulnerability features

[PATCH v3] cxl: Fix possible null pointer dereference in read_handle()

2024-07-14 Thread Ma Ke
In read_handle(), of_get_address() may return NULL which is later dereferenced. Fix this by adding NULL check. Based on our customized static analysis tool, extract vulnerability features[1], then match similar vulnerability features in this function. [1] https://git.kernel.org/pub/scm/linux/kern