Dereference a pointer after null check
client->display_resource is NULL and client is passed as argument as below
client->display_resource (NULL) is passed as argument
wl_resource_post_error(client->display_resource, WL_DISPLAY_ERROR_NO_MEMORY, "no memory");
struct wl_client *client = resource->client;
resource is NULL so dereferencing a NULL pointer.
NULL checking required before dereferencing
The patch for this Bug was submitted.
and the link for the patch is as follows:
Closing this bug, since the patch was discussed on the list.