[PATCH v2] cxl: Fix null pointer dereference in cxl_get_fd

Andrew Donnellan ajd at linux.ibm.com
Mon Jan 15 16:02:51 AEDT 2024


On Fri, 2024-01-12 at 13:49 +0800, Kunwu Chan wrote:

> +err:
> +	if (rc < 0)
> +		return ERR_PTR(rc);
>  	return NULL;

I don't think there's a way for this NULL to ever get returned?

Apart from that it looks good:

Reviewed-by: Andrew Donnellan <ajd at linux.ibm.com>

-- 
Andrew Donnellan    OzLabs, ADL Canberra
ajd at linux.ibm.com   IBM Australia Limited


More information about the Linuxppc-dev mailing list