···364364 /* Allocate a new rectangle optimistically. */365365 rect = kmalloc(sizeof(struct hardwall_info),366366 GFP_KERNEL | __GFP_ZERO);367367+ if (rect == NULL)368368+ return ERR_PTR(-ENOMEM);367369 INIT_LIST_HEAD(&rect->task_head);368370369371 /* Compute the rectangle size and validate that it's plausible. */