arch/tile: check kmalloc() result

If kmalloc() fails exit with -ENOMEM.

Signed-off-by: Kulikov Vasiliy <segooon@gmail.com>
Acked-by: Chris Metcalf <cmetcalf@tilera.com>

authored by Kulikov Vasiliy and committed by Chris Metcalf 1c689cbc a2262d8a

+2
+2
arch/tile/kernel/hardwall.c
··· 364 364 /* Allocate a new rectangle optimistically. */ 365 365 rect = kmalloc(sizeof(struct hardwall_info), 366 366 GFP_KERNEL | __GFP_ZERO); 367 + if (rect == NULL) 368 + return ERR_PTR(-ENOMEM); 367 369 INIT_LIST_HEAD(&rect->task_head); 368 370 369 371 /* Compute the rectangle size and validate that it's plausible. */