intel: Handle malloc fails in context create
authorBen Widawsky <benjamin.widawsky@intel.com>
Fri, 27 Dec 2013 00:37:00 +0000 (16:37 -0800)
committerBen Widawsky <benjamin.widawsky@intel.com>
Fri, 10 Jan 2014 19:05:50 +0000 (11:05 -0800)
commit3d34fe24957576d77c88877ded22e8ab5d96ca4c
treefc5999aaaec552500b2fd11251560428619e09b9
parent743372ea26ed38db3aeca4b545e867c1bc08370d
intel: Handle malloc fails in context create

The previous code would just use the potentially unallocated variable,
which is probably okay most of the time, but not very nice to the user
of the library.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
intel/intel_bufmgr_gem.c